Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add FAB button
dominik-zeglenbf949e531004
diff --git a/templates/dashboard/product/product_image/list.html b/templates/dashboard/product/product_image/list.htmlindex c7d33a00f6..43b7f27048 100644--- a/templates/dashboard/product/product_image/list.html+++ b/templates/dashboard/product/product_image/list.html@@ -11,6 +11,17 @@{% block menu_products_class %}active{% endblock %}+{% block header_extra %}+ <div class="btn-fab-fixed">+ <a class="btn-fab-default waves-effect waves-light"+ id="images-btn"+ href="{% url 'dashboard:product-image-add' product_pk=product.pk %}"+ title="{% trans "Add image" context "Add image button text" %}">+ <svg data-src="{% static "dashboard/images/add.svg" %}" />+ </a>+ </div>+{% endblock %}+{% block breadcrumbs %}<ul class="breadcrumbs breadcrumbs--history"><li>@@ -36,91 +47,91 @@{% block content %}<div id="images" class="tab-content">- <form action="{% url 'dashboard:product-images-upload' product_pk=product.pk %}" class="dropzone" id="product-image-form" novalidate>- <div class="dz-message"></div>- {% csrf_token %}- <div class="row">- <ul class="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 product-gallery-item" data-id="{{ image.pk }}">- <div class="row">- <div class="card">- <div class="card-image product-gallery-item-image">- <img class="responsive-img"- src="{{ image.image.crop.255x255 }}"- srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x"- 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" context "Image card text" %}- </span>- {% endif %}- </span>- </div>- <div class="sortable__drag-area"></div>- <div class="card-action">- <a class="btn-flat waves-effect" href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=image.pk %}">- {% trans "Edit" context "Dashboard edit action" %}- </a>- <a href="#base-modal" class="btn-flat waves-effect modal-trigger-custom" data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=image.pk %}">- {% trans "Remove" context "Dashboard remove action" %}- </a>- </div>+ <form action="{% url 'dashboard:product-images-upload' product_pk=product.pk %}" class="dropzone" id="product-image-form" novalidate>+ <div class="dz-message"></div>+ {% csrf_token %}+ <div class="row">+ <ul class="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 product-gallery-item" data-id="{{ image.pk }}">+ <div class="row">+ <div class="card">+ <div class="card-image product-gallery-item-image">+ <img class="responsive-img"+ src="{{ image.image.crop.255x255 }}"+ srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x"+ 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" context "Image card text" %}+ </span>+ {% endif %}+ </span>+ </div>+ <div class="sortable__drag-area"></div>+ <div class="card-action">+ <a class="btn-flat waves-effect" href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=image.pk %}">+ {% trans "Edit" context "Dashboard edit action" %}+ </a>+ <a href="#base-modal" class="btn-flat waves-effect modal-trigger-custom" data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=image.pk %}">+ {% trans "Remove" context "Dashboard remove action" %}+ </a></div></div>- </li>- {% endfor %}- {% else %}- <div class="sortable__drag-area"></div>- {% endif %}- </ul>- <div class="col s6 m3 product-gallery-item dropzone-message">- <div class="row">- <span class="product-gallery-item-title product-gallery-item-title--noclip card-title black-text">- <span class="grey-text hide-on-med-and-down">- {% trans "Drop images here to upload" context "Image gallery upload box text" %}- </span>+ </div>+ </li>+ {% endfor %}+ {% else %}+ <div class="sortable__drag-area"></div>+ {% endif %}+ </ul>+ <div class="col s6 m3 product-gallery-item dropzone-message">+ <div class="row">+ <span class="product-gallery-item-title product-gallery-item-title--noclip card-title black-text">+ <span class="grey-text hide-on-med-and-down">+ {% trans "Drop images here to upload" context "Image gallery upload box text" %}</span>- </div>+ </span></div></div>- </form>- <script type="application/template" id="template">- <li class="col s6 m3 product-gallery-item dz-preview dz-file-preview" data-id="{{ image.pk }}">- <div class="row">- <div class="card">- <div class="card-image product-gallery-item-image">- <img data-dz-thumbnail />- </div>- <div class="dz-progress">- <span class="dz-upload" data-dz-uploadprogress></span>- </div>- <div class="card-content">- <span class="product-gallery-item-title card-title black-text">- <span class="grey-text">- {% trans "No description" context "Empty image gallery message" %}- </span>+ </div>+ </form>+ <script type="application/template" id="template">+ <li class="col s6 m3 product-gallery-item dz-preview dz-file-preview" data-id="{{ image.pk }}">+ <div class="row">+ <div class="card">+ <div class="card-image product-gallery-item-image">+ <img data-dz-thumbnail />+ </div>+ <div class="dz-progress">+ <span class="dz-upload" data-dz-uploadprogress></span>+ </div>+ <div class="card-content">+ <span class="product-gallery-item-title card-title black-text">+ <span class="grey-text">+ {% trans "No description" context "Empty image gallery message" %}</span>- </div>- <div class="sortable__drag-area"></div>- <div class="card-action">- <a class="btn-flat waves-effect card-action-edit" href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=0 %}">- {% trans "Edit" context "Dashboard edit action" %}- </a>- <a href="#base-modal" class="btn-flat waves-effect card-action-delete modal-trigger-custom"- data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=0 %}">- {% trans "Remove" context "Dashboard remove action" %}- </a>- </div>+ </span>+ </div>+ <div class="sortable__drag-area"></div>+ <div class="card-action">+ <a class="btn-flat waves-effect card-action-edit" href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=0 %}">+ {% trans "Edit" context "Dashboard edit action" %}+ </a>+ <a href="#base-modal" class="btn-flat waves-effect card-action-delete modal-trigger-custom"+ data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=0 %}">+ {% trans "Remove" context "Dashboard remove action" %}+ </a></div></div>- </li>- </script>- </div>+ </div>+ </li>+ </script>+ </div>{% endblock %}