Skip to content

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

Style - html files

Mira Szewczykfe40fad6b116
diff --git a/templates/dashboard/collection/detail.html b/templates/dashboard/collection/detail.html
index 6a41a84e8f..adefc369ee 100644
--- a/templates/dashboard/collection/detail.html
+++ b/templates/dashboard/collection/detail.html
@@ -3,7 +3,7 @@
{% load i18n %}
{% block title %}
- {% if collection.pk %}{{ collection }}{% else %}{% trans 'Add new collection' %}{% endif %} - {% trans 'Collections' %} - {{ block.super }}{% endblock %}
+ {% if collection.pk %}{{ collection }}{% else %}{% trans 'Add new collection' %}{% endif %} - {% trans 'Collections' %} - {{ block.super }}{% endblock %}
{% block body_class %}body-collections{% endblock %}
@@ -12,26 +12,26 @@
{% block page_title %}{% if collection.pk %}{{ collection }}{% else %}{% trans 'Add new collection' %}{% endif %}{% endblock %}
{% block breadcrumbs %}
- <ul class="breadcrumbs breadcrumbs--history">
- <li><a href="{% url "dashboard:collection-list" %}" class="breadcrumb">{% trans "Collections" %}</a></li>
- <li class="back-mobile"><a href="{% url "dashboard:collection-list" %}" class="breadcrumb"><i class="material-icons">arrow_back</i></a></li>
- <li><span class="breadcrumbs--ellipsed-item">{% if collection.pk %}{{ collection }}{% else %}{% trans 'Add new collection' %}{% endif %}</span></li>
- </ul>
+ <ul class="breadcrumbs breadcrumbs--history">
+ <li><a href="{% url "dashboard:collection-list" %}" class="breadcrumb">{% trans "Collections" %}</a></li>
+ <li class="back-mobile"><a href="{% url "dashboard:collection-list" %}" class="breadcrumb"><i class="material-icons">arrow_back</i></a></li>
+ <li><span class="breadcrumbs--ellipsed-item">{% if collection.pk %}{{ collection }}{% else %}{% trans 'Add new collection' %}{% endif %}</span></li>
+ </ul>
{% endblock %}
{% block header_extra %}
- {% if collection.pk %}
- <a class="dropdown-button right" href="#" data-activates="collection-delete" data-constrainwidth="false">
- <i class="material-icons">more_vert</i>
+ {% if collection.pk %}
+ <a class="dropdown-button right" href="#" data-activates="collection-delete" data-constrainwidth="false">
+ <i class="material-icons">more_vert</i>
+ </a>
+ <ul id="collection-delete" class="dropdown-content">
+ <li>
+ <a class="modal-trigger-custom" data-href="{% url 'dashboard:collection-delete' collection.pk %}" href="#base-modal">
+ {% trans "Remove collection" context "Collection detail action" %}
</a>
- <ul id="collection-delete" class="dropdown-content">
- <li>
- <a class="modal-trigger-custom" data-href="{% url 'dashboard:collection-delete' collection.pk %}" href="#base-modal">
- {% trans "Remove collection" context "Collection detail action" %}
- </a>
- </li>
- </ul>
- {% endif %}
+ </li>
+ </ul>
+ {% endif %}
{% endblock %}
{% block content %}
diff --git a/templates/dashboard/collection/list.html b/templates/dashboard/collection/list.html
index d920bba594..689de8a724 100644
--- a/templates/dashboard/collection/list.html
+++ b/templates/dashboard/collection/list.html
@@ -9,41 +9,41 @@
{% block menu_collections_class %}active{% endblock %}
{% block breadcrumbs %}
- <ul class="breadcrumbs breadcrumbs--history">
- <li class="visible-s"><span>{% trans "Collections" %}</span></li>
- </ul>
+ <ul class="breadcrumbs breadcrumbs--history">
+ <li class="visible-s"><span>{% trans "Collections" %}</span></li>
+ </ul>
{% endblock %}
{% block header_extra %}
- <div class="fixed-action-btn">
- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal" title="{% trans "Add collection" %}"
- href="{% url 'dashboard:collection-add' %}">
- <i class="material-icons">add</i>
- </a>
- </div>
+ <div class="fixed-action-btn">
+ <a class="btn-fab btn-floating btn-large waves-effect waves-light teal" title="{% trans "Add collection" %}"
+ href="{% url 'dashboard:collection-add' %}">
+ <i class="material-icons">add</i>
+ </a>
+ </div>
{% endblock %}
{% block content %}
- <div class="row">
- <div class="col s12">
- {% if collections %}
- <ul class="collection list">
- {% for collection in collections %}
- <li class="collection-item list-item list-item--two-lines">
- <a class="list-item-name" href="{% url 'dashboard:collection-update' collection.pk %}">
- {{ collection }}
- </a>
- <p class="list-item-desc">
+ <div class="row">
+ <div class="col s12">
+ {% if collections %}
+ <ul class="collection list">
+ {% for collection in collections %}
+ <li class="collection-item list-item list-item--two-lines">
+ <a class="list-item-name" href="{% url 'dashboard:collection-update' collection.pk %}">
+ {{ collection }}
+ </a>
+ <p class="list-item-desc">
<span>
{% trans "Products in collection:" %} {{ collection.products.count }}
</span>
- </p>
- </li>
- {% endfor %}
- </ul>
- {% else %}
- <p>{% trans "No collections" %}</p>
- {% endif %}
- </div>
+ </p>
+ </li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <p>{% trans "No collections" %}</p>
+ {% endif %}
</div>
+ </div>
{% endblock %}
diff --git a/templates/dashboard/collection/modal_delete.html b/templates/dashboard/collection/modal_delete.html
index f6c861540d..186352052c 100644
--- a/templates/dashboard/collection/modal_delete.html
+++ b/templates/dashboard/collection/modal_delete.html
@@ -1,22 +1,22 @@
{% load i18n %}
<form method="post" id="form-category" class="form-async" action="{% url 'dashboard:collection-delete' collection.pk %}" novalidate>
- {% csrf_token %}
- <div class="modal-content">
- <div class="row">
- <div class="col s12">
- <h5>
- {% blocktrans with collection=collection %}
- Are you sure you want to delete the collection {{ collection }}?
- {% endblocktrans %}
- </h5>
- </div>
- </div>
-
+ {% csrf_token %}
+ <div class="modal-content">
+ <div class="row">
+ <div class="col s12">
+ <h5>
+ {% blocktrans with collection=collection %}
+ Are you sure you want to delete the collection {{ collection }}?
+ {% endblocktrans %}
+ </h5>
+ </div>
</div>
- <div class="modal-footer">
- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>
- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>
- </div>
+ </div>
+
+ <div class="modal-footer">
+ <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>
+ <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>
+ </div>
</form>