Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix indentation

weronka9fd1bf41b498
diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.html
index cf8cf77856..d6361ae8fa 100644
--- a/templates/dashboard/product/product_form.html
+++ b/templates/dashboard/product/product_form.html
@@ -281,36 +281,36 @@
{% csrf_token %}
<input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">
<ul class="row product-gallery" id="product-gallery" data-post-url="{% url 'dashboard:product-images-reorder' product_pk=product.pk %}">
- {% if images %}
- {% for image in images %}
- <li class="col s6 m3 card product-gallery-item" data-id="{{ image.pk }}">
- <div class="card-image product-gallery-item-image">
- <img class="responsive-img" src="{{ image.image.crop.400x400 }}" alt="">
- </div>
-
- <div class="card-content">
- <span class="product-gallery-item-title card-title black-text" title="{{ image.alt }}">
- {% if image.alt %}
- {{ image.alt }}
- {% else %}
- <span class="grey-text">{% trans "No description" %}</span>
- {% endif %}
- </span>
- <span class="product-gallery-item-desc" title="{{ image.image.name }}">{{ image.image.name }}</span>
- </div>
-
- <div class="card-action">
- <a href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=image.pk %}">
- {% trans "Edit" %}
- </a>
-
- <a href="#base-modal" class="modal-trigger-custom"
- data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=image.pk %}">
- {% trans "Delete" %}
- </a>
- </div>
- </li>
- {% endfor %}
+ {% if images %}
+ {% for image in images %}
+ <li class="col s6 m3 card product-gallery-item" data-id="{{ image.pk }}">
+ <div class="card-image product-gallery-item-image">
+ <img class="responsive-img" src="{{ image.image.crop.400x400 }}" alt="">
+ </div>
+
+ <div class="card-content">
+ <span class="product-gallery-item-title card-title black-text" title="{{ image.alt }}">
+ {% if image.alt %}
+ {{ image.alt }}
+ {% else %}
+ <span class="grey-text">{% trans "No description" %}</span>
+ {% endif %}
+ </span>
+ <span class="product-gallery-item-desc" title="{{ image.image.name }}">{{ image.image.name }}</span>
+ </div>
+
+ <div class="card-action">
+ <a href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=image.pk %}">
+ {% trans "Edit" %}
+ </a>
+
+ <a href="#base-modal" class="modal-trigger-custom"
+ data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=image.pk %}">
+ {% trans "Delete" %}
+ </a>
+ </div>
+ </li>
+ {% endfor %}
{% else %}
<p class="no-images">{% trans "This product has no images yet." %}</p>
{% endif %}