Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Another pass on templates formatting
Rafał Pitoń834630041667
diff --git a/templates/account/login.html b/templates/account/login.htmlindex 05a4c68a00..b8b68a2edc 100644--- a/templates/account/login.html+++ b/templates/account/login.html@@ -15,7 +15,7 @@<div class="login__register-link"><h3>{% trans "Don't have an account yet?" context "Login form secondary title" %}</h3><img src="{% static 'images/login-bg.png' %}"- srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">+ srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x"><a rel="nofollow" href="{% url 'account_signup' %}" class="btn secondary narrow">{% trans "Register" context "Login form secondary action" %}</a>diff --git a/templates/account/partials/login_form.html b/templates/account/partials/login_form.htmlindex 2578a9d39c..c5926a9b2f 100644--- a/templates/account/partials/login_form.html+++ b/templates/account/partials/login_form.html@@ -7,8 +7,7 @@<fieldset>{% bootstrap_form form %}{% if REDIRECT_FIELD_VALUE %}- <input type="hidden" name="{{ REDIRECT_FIELD_NAME }}"- value="{{ REDIRECT_FIELD_VALUE }}"/>+ <input type="hidden" name="{{ REDIRECT_FIELD_NAME }}" value="{{ REDIRECT_FIELD_VALUE }}"/>{% endif %}</fieldset><div class="row login__btn-group">@@ -25,20 +24,16 @@<div class="row"><div class="col-sm-6 col-md-12 col-xl-6">{% if 'facebook' in backends.backends and 'facebook' in available_backends %}- <a class="btn social-btn facebook"- href="{% url 'social:begin' 'facebook' %}">- <svg data-src="{% static "images/facebook-logo.svg" %}"- width="18" height="18"/>+ <a class="btn social-btn facebook" href="{% url 'social:begin' 'facebook' %}">+ <svg data-src="{% static "images/facebook-logo.svg" %}" width="18" height="18"/><small>{% trans 'Facebook' %}</small></a>{% endif %}</div><div class="col-sm-6 col-md-12 col-xl-6">{% if 'google-oauth2' in backends.backends and 'google-oauth2' in available_backends %}- <a class="btn social-btn google"- href="{% url 'social:begin' 'google-oauth2' %}">- <svg data-src="{% static "images/google-logo.svg" %}"- width="18" height="18"/>+ <a class="btn social-btn google" href="{% url 'social:begin' 'google-oauth2' %}">+ <svg data-src="{% static "images/google-logo.svg" %}" width="18" height="18"/><small>{% trans 'Google' %}</small></a>{% endif %}diff --git a/templates/account/password_reset.html b/templates/account/password_reset.htmlindex 92fcc7bd15..82de745642 100644--- a/templates/account/password_reset.html+++ b/templates/account/password_reset.html@@ -15,8 +15,9 @@<form method="post" novalidate>{% csrf_token %}<h2>{% trans "Forgot your password?" context "Password reset form title" %}</h2>- <p>{% blocktrans trimmed context "Password reset form help text" %}- Please let us know the email you have used to register or purchase at our store.+ <p>+ {% blocktrans trimmed context "Password reset form help text" %}+ Please let us know the email you have used to register or purchase at our store.{% endblocktrans %}</p><fieldset>diff --git a/templates/account/signup.html b/templates/account/signup.htmlindex 95a94120c5..964a307fd9 100644--- a/templates/account/signup.html+++ b/templates/account/signup.html@@ -16,7 +16,7 @@<div class="login__register-link"><h3>{% trans "Already have an account?" context "Signup form secondary title" %}</h3><img class="signup-img" src="{% static 'images/login-bg.png' %}"- srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">+ srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x"><p><a rel="nofollow" href="{% url 'account_login' %}" class="btn secondary narrow">{% trans "Log in" context "Signup form secondary action" %}</a></p>@@ -29,8 +29,7 @@{% csrf_token %}{% bootstrap_form form %}{% if REDIRECT_FIELD_VALUE %}- <input type="hidden" name="{{ REDIRECT_FIELD_NAME }}"- value="{{ REDIRECT_FIELD_VALUE }}"/>+ <input type="hidden" name="{{ REDIRECT_FIELD_NAME }}" value="{{ REDIRECT_FIELD_VALUE }}"/>{% endif %}</fieldset><button type="submit" class="btn primary narrow">diff --git a/templates/cart/_subtotal_table.html b/templates/cart/_subtotal_table.htmlindex f887f91c71..164caf1ad3 100644--- a/templates/cart/_subtotal_table.html+++ b/templates/cart/_subtotal_table.html@@ -9,9 +9,7 @@<h3>{% trans "Subtotal" context "Order subtotal" %}</h3></div><div class="col-4">- <h3 class="text-right cart-subtotal"- data-value="{% gross cart_total %}"- {% if local_cart_total %}data-value-local="{% gross local_cart_total %}"{% endif %}>+ <h3 class="text-right cart-subtotal" data-value="{% gross cart_total %}" {% if local_cart_total %}data-value-local="{% gross local_cart_total %}"{% endif %}>{% spaceless %}{% gross cart_total html=True %}{% if local_cart_total %}diff --git a/templates/cart/index.html b/templates/cart/index.htmlindex aa946c8bd0..533bba9dd4 100644--- a/templates/cart/index.html+++ b/templates/cart/index.html@@ -45,8 +45,7 @@<img src="{% get_thumbnail line.variant.product.images.first.image method="crop" size="60x60" %}"srcset="{% get_thumbnail line.variant.product.images.first.image method="crop" size="60x60" %} 1x, {% get_thumbnail line.variant.product.images.first.image method="crop" size="120x120" %} 2x"alt="">- <p>{{ line.variant.product }}- <br><small>{{ line.variant }}</small></p>+ <p>{{ line.variant.product }}<br><small>{{ line.variant }}</small></p></a></div><div class="col-5">@@ -83,8 +82,7 @@</div>{% else %}<div class="cart__empty">- <img src="{% static 'images/empty-cart-bg.png' %}"- srcset="{% static 'images/empty-cart-bg.png' %} 1x, {% static 'images/empty-cart-bg2x.png' %} 2x">+ <img src="{% static 'images/empty-cart-bg.png' %}" srcset="{% static 'images/empty-cart-bg.png' %} 1x, {% static 'images/empty-cart-bg2x.png' %} 2x"><h2>{% trans "There are no products in your shopping cart." context "Empty cart message" %}</h2><a href="{% url 'home' %}" class="btn primary">{% trans "Check out our sales" context "Empty cart link" %}</a></div>diff --git a/templates/category/index.html b/templates/category/index.htmlindex b0c9e3f117..6c7414b42f 100644--- a/templates/category/index.html+++ b/templates/category/index.html@@ -128,7 +128,9 @@</h2><ul class="product-filters__categories__childs no-parent">{% for child in category.get_children %}- <li><a href="{{ child.get_absolute_url }}">{{ child.name }}</a></li>+ <li>+ <a href="{{ child.get_absolute_url }}">{{ child.name }}</a>+ </li>{% endfor %}</ul></div>@@ -143,8 +145,7 @@{% endif %}</h2><div class="product-filters">- <div class="product-filters__attributes" data-icon-up="{% static "images/chevron-up.svg" %}"- data-icon-down="{% static "images/chevron-down.svg" %}">+ <div class="product-filters__attributes" data-icon-up="{% static "images/chevron-up.svg" %}" data-icon-down="{% static "images/chevron-down.svg" %}"><form method="get">{% for field in filter_set.form %}{% if field.name == 'sort_by' %}@@ -152,9 +153,7 @@Field 'sort_by' is hidden because it is rendered in header.This is required if you want to have sorting to be kept during further filtering.{% endcomment %}-- <input type="hidden" name="sort_by"- value="{% if request.GET.sort_by %}{{ request.GET.sort_by }}{% endif %}">+ <input type="hidden" name="sort_by" value="{% if request.GET.sort_by %}{{ request.GET.sort_by }}{% endif %}">{% elif field.name == 'price' %}<div class="toggle-filter product-filters__price-range"><h3 class="filter-label">@@ -201,7 +200,7 @@<div>{% if products %}<div class="row">- {% include "category/_items.html" with products=products %}+ {% include "category/_items.html" with products=products %}</div><div class="row"><div class="m-auto">diff --git a/templates/checkout/login.html b/templates/checkout/login.htmlindex 3e28c57526..7c6f352059 100644--- a/templates/checkout/login.html+++ b/templates/checkout/login.html@@ -9,11 +9,12 @@<div class="col-12 col-md-6"><div class="checkout__login__continue"><h3>{% trans "New customer?" context "Checkout login page title" %}</h3>- <img class="checkout-pirate" src="{% static 'images/login-bg.png' %}"- srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">- <p><a href="{% url 'checkout:index' %}" class="btn secondary narrow">- {% trans "Continue" context "Checkout login page new users action" %}- </a></p>+ <img class="checkout-pirate" src="{% static 'images/login-bg.png' %}" srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">+ <p>+ <a href="{% url 'checkout:index' %}" class="btn secondary narrow">+ {% trans "Continue" context "Checkout login page new users action" %}+ </a>+ </p><small>{% trans "Registration is not required!" context "Checkout login page new users message" %}</small></div></div>diff --git a/templates/checkout/snippets/addresses_form_panel.html b/templates/checkout/snippets/addresses_form_panel.htmlindex 1698b9c9c2..b2e4af4854 100644--- a/templates/checkout/snippets/addresses_form_panel.html+++ b/templates/checkout/snippets/addresses_form_panel.html@@ -1,18 +1,14 @@{% load i18n_address_tags %}<div class="radio {% if address or label == _('Same as shipping') %} address_hide{% else %} address_show{% endif %}"><label>- <input type="radio"- name="{{ radio_name }}"- value="{{ radio_value }}"- id="address_{{ radio_value }}"- {% if radio_value == value %}checked{% endif %}>- {% if address %}- <div class="address-details">- {% format_address address %}- </div>- {% else %}- {{ label }}- {% endif %}+ <input type="radio" name="{{ radio_name }}" value="{{ radio_value }}" id="address_{{ radio_value }}" {% if radio_value == value %}checked{% endif %}>+ {% if address %}+ <div class="address-details">+ {% format_address address %}+ </div>+ {% else %}+ {{ label }}+ {% endif %}</label></div><div>diff --git a/templates/checkout/snippets/voucher_form.html b/templates/checkout/snippets/voucher_form.htmlindex fa7e903ef6..e17e4b4aab 100644--- a/templates/checkout/snippets/voucher_form.html+++ b/templates/checkout/snippets/voucher_form.html@@ -20,8 +20,7 @@{% discount_as_negative discount %}</div>{% else %}- <form action="{{ request.path }}?next={{ request.path }}"- method="post">+ <form action="{{ request.path }}?next={{ request.path }}" method="post">{% csrf_token %}<div class="form-group input-btn">{% trans "Use" context "Checkout voucher form action" as use_voucher %}diff --git a/templates/dashboard/category/detail.html b/templates/dashboard/category/detail.htmlindex 32356fe9f3..85c2dc1689 100644--- a/templates/dashboard/category/detail.html+++ b/templates/dashboard/category/detail.html@@ -43,8 +43,7 @@{% if path %}<li class="back-mobile"><a href="{% url 'dashboard:category-list' %}">- <svg data-src="{% static 'dashboard/images/arrow-left.svg' %}" fill="#fff"- width="20px" height="20px"/>+ <svg data-src="{% static 'dashboard/images/arrow-left.svg' %}" fill="#fff" width="20px" height="20px"/></a></li>{% for node in path %}@@ -56,9 +55,7 @@</li>{% else %}<li class="hide-on-med-and-down">- <a title="{{ node.name }}"- href="{% url 'dashboard:category-detail' pk=node.pk %}"- class="breadcrumbs--ellipsed-item">+ <a href="{% url 'dashboard:category-detail' pk=node.pk %}" title="{{ node.name }}" class="breadcrumbs--ellipsed-item">{{ node.name }}</a></li>@@ -109,9 +106,7 @@<a class="btn-flat waves-effect" href="{% url 'dashboard:category-edit' root_pk=root.pk %}">{% trans "Edit category" context "Category detail view action" %}</a>- <a class="btn-flat waves-effect modal-trigger-custom"- data-href="{% url 'dashboard:category-delete' pk=root.pk %}"- href="#base-modal">+ <a href="#base-modal" class="btn-flat waves-effect modal-trigger-custom" data-href="{% url 'dashboard:category-delete' pk=root.pk %}">{% trans "Remove category" context "Category detail view action" %}</a></div>@@ -161,9 +156,7 @@<a href="{% url 'dashboard:category-edit' root_pk=node.pk %}" class="btn-flat waves-effect">{% trans 'Edit' context 'Category edit action' %}</a>- <a class="btn-flat waves-effect modal-trigger-custom"- data-href="{% url 'dashboard:category-delete' pk=node.pk %}"- href="#base-modal">+ <a href="#base-modal" class="btn-flat waves-effect modal-trigger-custom" data-href="{% url 'dashboard:category-delete' pk=node.pk %}">{% trans "Remove" context "Category list action link" %}</a></td>diff --git a/templates/dashboard/category/form.html b/templates/dashboard/category/form.htmlindex 87d70fab03..4ddd9740d2 100644--- a/templates/dashboard/category/form.html+++ b/templates/dashboard/category/form.html@@ -65,9 +65,7 @@{% endif %}{% else %}<li class="hide-on-med-and-down">- <a title="{{ node.name }}"- href="{% url 'dashboard:category-detail' pk=node.pk %}"- class="breadcrumbs--ellipsed-item">+ <a href="{% url 'dashboard:category-detail' pk=node.pk %}" title="{{ node.name }}" class="breadcrumbs--ellipsed-item">{{ node.name }}</a></li>diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.htmlindex 90ee573e73..46db27d977 100644--- a/templates/dashboard/category/list.html+++ b/templates/dashboard/category/list.html@@ -20,9 +20,7 @@{% block header_extra %}{% if perms.product.edit_category %}<div class="btn-fab-fixed">- <a class="btn-fab-default waves-effect waves-light"- title="{% trans 'Add category' context 'Category list add button text' %}"- href="{% url 'dashboard:category-add' %}">+ <a href="{% url 'dashboard:category-add' %}" class="btn-fab-default waves-effect waves-light" title="{% trans 'Add category' context 'Category list add button text' %}"><svg data-src="{% static 'dashboard/images/add.svg' %}"/></a></div>diff --git a/templates/dashboard/category/modal/confirm_delete.html b/templates/dashboard/category/modal/confirm_delete.htmlindex a984b422ee..c840a1b5d9 100644--- a/templates/dashboard/category/modal/confirm_delete.html+++ b/templates/dashboard/category/modal/confirm_delete.html@@ -11,36 +11,36 @@{% block title %}{% blocktrans trimmed with category=category context "Remove category modal title" %}-Remove category {{ category }}+ Remove category {{ category }}{% endblocktrans %}{% endblock %}{% block content %}-{% blocktrans trimmed with category=category context "Remove category modal title" %}- Are you sure you want to remove category <strong>{{ category }}</strong>?-{% endblocktrans %}-{% if descendants %}-<p>- {% trans "The following child categories will be removed:" context "Delete category form text about descendant categories" %}- <ul>- {% recursetree descendants %}- {{ node.name }},- {% if not node.is_leaf_node %}- {{ children }}- {% endif %}- {% endrecursetree %}- </ul>-</p>-{% endif %}-{% if products_count %}-<p>- {% blocktrans count counter=products_count trimmed context "Remove category form text about products" %}- There is one product in this category that will be removed.- {% plural %}- There are {{ counter }} products in this category that will be removed.+ {% blocktrans trimmed with category=category context "Remove category modal title" %}+ Are you sure you want to remove category <strong>{{ category }}</strong>?{% endblocktrans %}-</p>-{% endif %}+ {% if descendants %}+ <p>+ {% trans "The following child categories will be removed:" context "Delete category form text about descendant categories" %}+ <ul>+ {% recursetree descendants %}+ {{ node.name }},+ {% if not node.is_leaf_node %}+ {{ children }}+ {% endif %}+ {% endrecursetree %}+ </ul>+ </p>+ {% endif %}+ {% if products_count %}+ <p>+ {% blocktrans count counter=products_count trimmed context "Remove category form text about products" %}+ There is one product in this category that will be removed.+ {% plural %}+ There are {{ counter }} products in this category that will be removed.+ {% endblocktrans %}+ </p>+ {% endif %}{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.htmlindex c7ac322f04..341d61513b 100644--- a/templates/dashboard/customer/detail.html+++ b/templates/dashboard/customer/detail.html@@ -30,7 +30,9 @@<svg data-src="{% static "dashboard/images/arrow-left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li>- <li><span class="breadcrumbs--elipsed-item">{{ customer }}</span></li>+ <li>+ <span class="breadcrumbs--elipsed-item">{{ customer }}</span>+ </li></ul>{% endblock %}@@ -57,21 +59,17 @@</div><div class="card-action">{% if perms.userprofile.edit_user %}- <a class="btn-flat waves-effect"- href="{% url 'dashboard:customer-update' customer.pk %}">+ <a href="{% url 'dashboard:customer-update' customer.pk %}" class="btn-flat waves-effect">{% trans "Edit customer" context "Customer action" %}</a>{% endif %}{% if not customer.is_staff and perms.userprofile.edit_user and perms.userprofile.edit_staff %}- <a class="btn-flat waves-effect modal-trigger-custom"- href="#base-modal"- data-href="{% url 'dashboard:customer-promote' pk=customer.pk %}">+ <a href="#base-modal" class="btn-flat waves-effect modal-trigger-custom" data-href="{% url 'dashboard:customer-promote' pk=customer.pk %}">{% trans 'Promote to staff' context 'Customer promote to staff member action' %}</a>{% endif %}{% if perms.userprofile.impersonate_user %}- <a class="btn-flat waves-effect"- href="{% url 'impersonate-start' uid=customer.pk %}">+ <a href="{% url 'impersonate-start' uid=customer.pk %}" class="btn-flat waves-effect">{% trans 'Impersonate customer' context 'Customer impersonate action' %}</a>{% endif %}diff --git a/templates/dashboard/customer/list.html b/templates/dashboard/customer/list.htmlindex add2f414e7..782fdcab3d 100644--- a/templates/dashboard/customer/list.html+++ b/templates/dashboard/customer/list.html@@ -16,9 +16,7 @@{% block header_extra %}{% if perms.userprofile.edit_staff %}<div class="btn-fab-fixed">- <a class="btn-fab-default waves-effect waves-light"- title="{% trans "Add customer" context "Customer list add button text" %}"- href="{% url 'dashboard:customer-create' %}">+ <a href="{% url 'dashboard:customer-create' %}" class="btn-fab-default waves-effect waves-light" title="{% trans "Add customer" context "Customer list add button text" %}" ><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/discount/sale/form.html b/templates/dashboard/discount/sale/form.htmlindex 13b36429e6..888b47287e 100644--- a/templates/dashboard/discount/sale/form.html+++ b/templates/dashboard/discount/sale/form.html@@ -23,14 +23,12 @@{% block header_extra %}{% if sale.pk %}- <a class="dropdown-button right" href="#" data-activates="sale-delete"- data-constrainwidth="false">+ <a class="dropdown-button right" href="#" data-activates="sale-delete" data-constrainwidth="false"><svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="sale-delete" class="dropdown-content"><li>- <a class="modal-trigger-custom" href="#base-modal"- data-href="{% url 'dashboard:sale-delete' pk=sale.pk %}">+ <a class="modal-trigger-custom" href="#base-modal" data-href="{% url 'dashboard:sale-delete' pk=sale.pk %}">{% trans "Remove sale" context "Sale (discount) action" %}</a></li>diff --git a/templates/dashboard/discount/voucher/form.html b/templates/dashboard/discount/voucher/form.htmlindex aca3f2cff3..0fb8db0217 100644--- a/templates/dashboard/discount/voucher/form.html+++ b/templates/dashboard/discount/voucher/form.html@@ -23,8 +23,7 @@{% block header_extra %}{% if voucher.pk %}- <a class="dropdown-button right" href="#" data-activates="voucher-delete"- data-constrainwidth="false">+ <a class="dropdown-button right" href="#" data-activates="voucher-delete" data-constrainwidth="false"><svg data-src="{% static "dashboard/images/more-vert.svg" %}" height="24" width="24" /></a><ul id="voucher-delete" class="dropdown-content">diff --git a/templates/dashboard/discount/voucher/list.html b/templates/dashboard/discount/voucher/list.htmlindex de6b890856..e81add7d7c 100644--- a/templates/dashboard/discount/voucher/list.html+++ b/templates/dashboard/discount/voucher/list.html@@ -26,8 +26,7 @@{% block header_extra %}{% if perms.discount.edit_voucher %}<div class="btn-fab-fixed">- <a href="{% url 'dashboard:voucher-add' %}" class="btn-fab-default waves-effect waves-light"- title="{% trans "Add voucher" context "Voucher list add button text" %}">+ <a href="{% url 'dashboard:voucher-add' %}" class="btn-fab-default waves-effect waves-light" title="{% trans "Add voucher" context "Voucher list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/group/list.html b/templates/dashboard/group/list.htmlindex 3e4feff3c1..057442f4bc 100644--- a/templates/dashboard/group/list.html+++ b/templates/dashboard/group/list.html@@ -15,9 +15,7 @@{% block header_extra %}{% if perms.userprofile.edit_group %}<div class="btn-fab-fixed">- <a class="btn-fab-default waves-effect waves-light"- title="{% trans "Add group" context "Group list add button text" %}"- href="{% url 'dashboard:group-create' %}">+ <a href="{% url 'dashboard:group-create' %}" class="btn-fab-default waves-effect waves-light" title="{% trans "Add group" context "Group list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/includes/_filters.html b/templates/dashboard/includes/_filters.htmlindex 5647ad9fc6..b8ccfccba2 100644--- a/templates/dashboard/includes/_filters.html+++ b/templates/dashboard/includes/_filters.html@@ -26,8 +26,7 @@{% if field.name == 'sort_by' %}<!--Field 'sort_by' is hidden because it is rendered in header.This is required if you want to have sorting to be kept during further filtering.-->- <input type="hidden" name="sort_by"- value="{% if sort_by %}{{ sort_by }}{% endif %}">+ <input type="hidden" name="sort_by" value="{% if sort_by %}{{ sort_by }}{% endif %}">{% else %}{{ field|materializecss }}{% endif %}diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex df20944ef4..a9c6bce9cc 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -71,7 +71,7 @@<span>{% trans "Details" context "Order detail tab" %}</span>- <svg data-src="{% static "dashboard/images/description.svg" %}" class="fill-secondary"/>+ <svg data-src="{% static "dashboard/images/description.svg" %}" class="fill-secondary" /></a></li><li role="presentation" class="tab col s4">@@ -187,24 +187,21 @@{% if can_capture or can_refund or can_release %}<div class="data-table-action">{% if can_capture %}- <a href="#base-modal" data-href="{% url 'dashboard:capture-payment' order_pk=order.pk payment_pk=payment.pk %}"- class="btn-flat modal-trigger-custom waves-effect">+ <a href="#base-modal" data-href="{% url 'dashboard:capture-payment' order_pk=order.pk payment_pk=payment.pk %}" class="btn-flat modal-trigger-custom waves-effect">{% trans "Capture" context "Order summary card action" %}</a>{% elif can_refund %}- <a href="#base-modal" data-href="{% url 'dashboard:refund-payment' order_pk=order.pk payment_pk=payment.pk %}"- class="btn-flat modal-trigger-custom waves-effect">+ <a href="#base-modal" data-href="{% url 'dashboard:refund-payment' order_pk=order.pk payment_pk=payment.pk %}" class="btn-flat modal-trigger-custom waves-effect">{% trans "Refund" context "Order summary card action" %}</a>{% endif %}{% if can_release %}- <a href="#base-modal" data-href="{% url 'dashboard:release-payment' order_pk=order.pk payment_pk=payment.pk %}"- class="btn-flat modal-trigger-custom waves-effect">+ <a href="#base-modal" data-href="{% url 'dashboard:release-payment' order_pk=order.pk payment_pk=payment.pk %}" class="btn-flat modal-trigger-custom waves-effect">{% trans "Release" context "Order summary card action" %}</a>{% endif %}<a href="{% url 'dashboard:order-invoice' order_pk=order.pk %}" data-href="" class="btn-flat waves-effect" target="_blank">- {% trans "Invoice" context "Order detail action" %}+ {% trans "Invoice" context "Order detail action" %}</a></div>{% endif %}@@ -244,7 +241,8 @@{% if perms.order.edit_order %}<div class="card-action"><a href="{% url "dashboard:address-edit" order_pk=order.pk address_type="billing" %}" class="btn-flat waves-effect">- {% trans "Edit" context "Dashboard edit action" %}</a>+ {% trans "Edit" context "Dashboard edit action" %}+ </a></div>{% endif %}</div>diff --git a/templates/dashboard/order/modal/cancel_line.html b/templates/dashboard/order/modal/cancel_line.htmlindex 614a5b28b3..98a44ec556 100644--- a/templates/dashboard/order/modal/cancel_line.html+++ b/templates/dashboard/order/modal/cancel_line.html@@ -13,8 +13,8 @@{% endblock %}{% block content %}-{% trans "Are you sure you want remove this order line?" context "Modal remove order line text" %}-{{ form|materializecss }}+ {% trans "Are you sure you want remove this order line?" context "Modal remove order line text" %}+ {{ form|materializecss }}<table><thead><tr>diff --git a/templates/dashboard/product/product_attribute/detail.html b/templates/dashboard/product/product_attribute/detail.htmlindex e67b64f55d..ca3741f88d 100644--- a/templates/dashboard/product/product_attribute/detail.html+++ b/templates/dashboard/product/product_attribute/detail.html@@ -48,9 +48,8 @@<a class="btn-flat waves-effect" href="{% url "dashboard:product-attribute-update" attribute.pk %}">{% trans "Edit attribute" context "Attribute detail action" %}</a>- <a class="btn-flat waves-effect modal-trigger-custom" href="#base-modal"- data-href="{% url 'dashboard:product-attribute-delete' pk=attribute.pk %}">- {% trans "Remove attribute" context "Attribute detail action" %}+ <a class="btn-flat waves-effect modal-trigger-custom" href="#base-modal" data-href="{% url 'dashboard:product-attribute-delete' pk=attribute.pk %}">+ {% trans "Remove attribute" context "Attribute detail action" %}</a></div>{% endif %}@@ -63,9 +62,9 @@</div>{% if perms.product.edit_product %}<div class="data-table-header-action">- <a href="{% url 'dashboard:product-attribute-value-add' attribute_pk=attribute.pk %}" class="btn-flat waves-effect">- {% trans "Add" %}- </a>+ <a href="{% url 'dashboard:product-attribute-value-add' attribute_pk=attribute.pk %}" class="btn-flat waves-effect">+ {% trans "Add" %}+ </a></div>{% endif %}<div class="data-table-container">diff --git a/templates/dashboard/product/product_attribute/form.html b/templates/dashboard/product/product_attribute/form.htmlindex fa59db0919..d63e745809 100644--- a/templates/dashboard/product/product_attribute/form.html+++ b/templates/dashboard/product/product_attribute/form.html@@ -26,7 +26,7 @@<ul class="breadcrumbs breadcrumbs--history"><li><a href="{% url 'dashboard:product-attributes' %}" class="breadcrumbs--ellipsed-item">- {% trans "Attributes" context "Dashboard attributes list" %}+ {% trans "Attributes" context "Dashboard attributes list" %}</a></li><li class="back-mobile">diff --git a/templates/dashboard/product/product_class/form.html b/templates/dashboard/product/product_class/form.htmlindex 6aa125de30..93c9b38f78 100644--- a/templates/dashboard/product/product_class/form.html+++ b/templates/dashboard/product/product_class/form.html@@ -54,8 +54,7 @@<ul id="context-menu" class="dropdown-content">{% if perms.product.edit_properties %}<li>- <a href="#base-modal" data-href="{% url 'dashboard:product-class-delete' pk=product_class.pk %}"- class="modal-trigger-custom">+ <a href="#base-modal" data-href="{% url 'dashboard:product-class-delete' pk=product_class.pk %}" class="modal-trigger-custom">{% trans "Remove product type" context "Product class action" %}</a></li>diff --git a/templates/dashboard/product/product_class/modal/confirm_delete.html b/templates/dashboard/product/product_class/modal/confirm_delete.htmlindex 156042bd36..4da82930ba 100644--- a/templates/dashboard/product/product_class/modal/confirm_delete.html+++ b/templates/dashboard/product/product_class/modal/confirm_delete.html@@ -23,15 +23,15 @@{% endblocktrans %}</p><p>-{% if products %}- {% blocktrans trimmed context "Modal remove product class text" with product_count=products.count %}- There are {{ product_count }} products in product class.- {% endblocktrans %}-{% else %}- {% blocktrans trimmed context "Modal remove product class text" %}- There are no products in this product class.- {% endblocktrans %}-{% endif %}+ {% if products %}+ {% blocktrans trimmed context "Modal remove product class text" with product_count=products.count %}+ There are {{ product_count }} products in product class.+ {% endblocktrans %}+ {% else %}+ {% blocktrans trimmed context "Modal remove product class text" %}+ There are no products in this product class.+ {% endblocktrans %}+ {% endif %}</p>{% endblock %}diff --git a/templates/dashboard/product/product_image/list.html b/templates/dashboard/product/product_image/list.htmlindex e938eb4c40..a85e291087 100644--- a/templates/dashboard/product/product_image/list.html+++ b/templates/dashboard/product/product_image/list.html@@ -48,7 +48,7 @@{% block content %}<div class="row"><div id="images" class="tab-content col s12 m9">- <form action="{% url 'dashboard:product-images-upload' product_pk=product.pk %}" class="" id="product-image-form" novalidate>+ <form action="{% url 'dashboard:product-images-upload' product_pk=product.pk %}" id="product-image-form" novalidate><div class="dz-message"></div>{% csrf_token %}<div class="row">@@ -65,8 +65,7 @@alt=""></div><div class="card-content">- <span class="product-gallery-item-title card-title black-text"- title="{{ image.alt }}">+ <span class="product-gallery-item-title card-title black-text" title="{{ image.alt }}">{% if image.alt %}{{ image.alt }}{% else %}diff --git a/templates/dashboard/product/product_image/versatile_image.html b/templates/dashboard/product/product_image/versatile_image.htmlindex afe61884e6..c47355a5d2 100644--- a/templates/dashboard/product/product_image/versatile_image.html+++ b/templates/dashboard/product/product_image/versatile_image.html@@ -10,8 +10,7 @@{% trans "Pick the most relevant part of the image using the red circle." context "Image form text" %}</p><div class="image-wrap outer">- <div class="point-stage" id="{{ widget.point_stage_id }}"- data-image_preview_id="{{ widget.image_preview_id }}">+ <div class="point-stage" id="{{ widget.point_stage_id }}" data-image_preview_id="{{ widget.image_preview_id }}"><div class="ppoi-point" id="{{ widget.ppoi_id }}"></div></div>{% if widget.value %}diff --git a/templates/dashboard/product/stock_location/list.html b/templates/dashboard/product/stock_location/list.htmlindex 9ec9f5ef6e..ef738ffcd7 100644--- a/templates/dashboard/product/stock_location/list.html+++ b/templates/dashboard/product/stock_location/list.html@@ -45,8 +45,7 @@</thead><tbody>{% for location in locations %}- <tr data-action-go="- {% if perms.product.edit_stock_location %}{% url 'dashboard:product-stock-location-edit' location.pk %}{% endif %}">+ <tr data-action-go="{% if perms.product.edit_stock_location %}{% url 'dashboard:product-stock-location-edit' location.pk %}{% endif %}"><td>{{ location }}</td></tr>{% endfor %}diff --git a/templates/dashboard/shipping/country/form.html b/templates/dashboard/shipping/country/form.htmlindex 2d401fb691..af39ee07da 100644--- a/templates/dashboard/shipping/country/form.html+++ b/templates/dashboard/shipping/country/form.html@@ -28,7 +28,7 @@<ul class="breadcrumbs breadcrumbs--history"><li><a href="{% url 'dashboard:shipping-methods' %}" class="breadcrumbs--ellipsed-item">- {% trans "Shipping methods" context "Dashboard attributes list" %}+ {% trans "Shipping methods" context "Dashboard attributes list" %}</a></li><li class="back-mobile">diff --git a/templates/dashboard/shipping/detail.html b/templates/dashboard/shipping/detail.htmlindex 2dd2d60c45..2b319a05e0 100644--- a/templates/dashboard/shipping/detail.html+++ b/templates/dashboard/shipping/detail.html@@ -26,7 +26,7 @@</li><li><span class="breadcrumbs--elipsed-item">- {{ shipping_method }}+ {{ shipping_method }}</span></li></ul>diff --git a/templates/dashboard/shipping/list.html b/templates/dashboard/shipping/list.htmlindex 3d70350ade..b8a09a8269 100644--- a/templates/dashboard/shipping/list.html+++ b/templates/dashboard/shipping/list.html@@ -24,9 +24,7 @@{% block header_extra %}{% if perms.shipping.edit_shipping %}<div class="btn-fab-fixed">- <a href="{% url 'dashboard:shipping-method-add' %}"- class="btn-fab-default waves-effect waves-light"- title="{% trans "Add method" context "Shipping method list add button text" %}">+ <a href="{% url 'dashboard:shipping-method-add' %}" class="btn-fab-default waves-effect waves-light" title="{% trans "Add method" context "Shipping method list add button text" %}"><svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>diff --git a/templates/dashboard/staff/detail.html b/templates/dashboard/staff/detail.htmlindex 06826d18c5..dd4edea494 100644--- a/templates/dashboard/staff/detail.html+++ b/templates/dashboard/staff/detail.html@@ -45,8 +45,7 @@<ul id="context-menu" class="dropdown-content">{% if perms.userprofile.edit_staff %}<li>- <a href="#base-modal" data-href="{% url 'dashboard:staff-delete' pk=staff_member.pk %}"- class="modal-trigger-custom">+ <a href="#base-modal" data-href="{% url 'dashboard:staff-delete' pk=staff_member.pk %}" class="modal-trigger-custom">{% trans 'Remove staff member' context 'Staff member form action' %}</a></li>diff --git a/templates/materializecssform/field.html b/templates/materializecssform/field.htmlindex e2232c54e0..b30c353ade 100644--- a/templates/materializecssform/field.html+++ b/templates/materializecssform/field.html@@ -202,10 +202,8 @@<span>{% trans "File" %}</span>- <input class="file-chooser" id="{{ field.auto_id }}_0"- name="{{ field.name }}_0" type="file">- <input class="ppoi-input" id="{{ field.auto_id }}_1"- name="{{ field.name }}_1" type="hidden">+ <input class="file-chooser" id="{{ field.auto_id }}_0" name="{{ field.name }}_0" type="file">+ <input class="ppoi-input" id="{{ field.auto_id }}_1" name="{{ field.name }}_1" type="hidden"></div><div class="file-path-wrapper"><input class="file-path" type="text">@@ -238,8 +236,7 @@<span>{% trans "File" %}</span>- <input class="file-chooser" id="{{ field.auto_id }}_0"- name="{{ field.name }}_0" type="file">+ <input class="file-chooser" id="{{ field.auto_id }}_0" name="{{ field.name }}_0" type="file"></div><div class="file-path-wrapper"><input class="file-path" type="text" value="{{ field.value.display_value }}">@@ -289,13 +286,11 @@{% trans "(optional)" context "Dashboard form labels" %}{% endif %}</label>- <div class="">+ <div>{% for value in field.value %}<div class="input-range--field"><div class="input-with-suffix">- <input type="number" class=""- name="{{ field.name }}_{{ forloop.counter0 }}"- value="{{ value }}"+ <input type="number" name="{{ field.name }}_{{ forloop.counter0 }}" value="{{ value }}"id="{{ field.auto_id }}_{{ forloop.counter0 }}"><div class="input-text-suffix">{{ field.field.widget.currency }}</div></div>diff --git a/templates/order/details.html b/templates/order/details.htmlindex d820673657..2e57054d3b 100644--- a/templates/order/details.html+++ b/templates/order/details.html@@ -12,17 +12,23 @@{% block breadcrumb %}{% if order.user == user %}<ul class="breadcrumbs list-unstyled">- <li><a href="{% url 'home'%}">- {% trans "Home" context "Main navigation item" %}- </a></li>- <li><a href="{% url "profile:details" %}">- {% trans "Your account" context "Main navigation item" %}- </a></li>- <li><a href="{{ order.get_absolute_url }}">- {% blocktrans trimmed context "Order details breadcrumb" %}- Order {{ order }}- {% endblocktrans %}- </a></li>+ <li>+ <a href="{% url 'home'%}">+ {% trans "Home" context "Main navigation item" %}+ </a>+ </li>+ <li>+ <a href="{% url "profile:details" %}">+ {% trans "Your account" context "Main navigation item" %}+ </a>+ </li>+ <li>+ <a href="{{ order.get_absolute_url }}">+ {% blocktrans trimmed context "Order details breadcrumb" %}+ Order {{ order }}+ {% endblocktrans %}+ </a>+ </li></ul>{% endif %}{% endblock breadcrumb %}diff --git a/templates/order/payment.html b/templates/order/payment.htmlindex ccae3f2479..e1674a9b5d 100644--- a/templates/order/payment.html+++ b/templates/order/payment.html@@ -15,17 +15,23 @@{% block breadcrumb %}{% if order.user == user %}<ul class="breadcrumbs list-unstyled">- <li><a href="{% url 'home' %}">- {% trans "Home" context "Main navigation item" %}- </a></li>- <li><a href="{% url "profile:details" %}">- {% trans "Your account" context "Main navigation item" %}- </a></li>- <li><a href="{{ order.get_absolute_url }}">- {% blocktrans trimmed context "Payment details breadcrumb" %}- Order {{ order }}- {% endblocktrans %}- </a></li>+ <li>+ <a href="{% url 'home' %}">+ {% trans "Home" context "Main navigation item" %}+ </a>+ </li>+ <li>+ <a href="{% url "profile:details" %}">+ {% trans "Your account" context "Main navigation item" %}+ </a>+ </li>+ <li>+ <a href="{{ order.get_absolute_url }}">+ {% blocktrans trimmed context "Payment details breadcrumb" %}+ Order {{ order }}+ {% endblocktrans %}+ </a>+ </li></ul>{% endif %}{% endblock breadcrumb %}diff --git a/templates/product/details.html b/templates/product/details.htmlindex 1d3522abd7..8ceeaf7b1a 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -33,15 +33,21 @@{% block breadcrumb %}<ul class="breadcrumbs list-unstyled">- <li><a href="{% url 'home' %}">+ <li>+ <a href="{% url 'home' %}">{% trans "Home" context "Main navigation item" %}- </a></li>+ </a>+ </li>{% with product.get_first_category as category %}{% if category %}- <li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>+ <li>+ <a href="{{ category.get_absolute_url }}">{{ category }}</a>+ </li>{% endif %}{% endwith %}- <li><a href="{{ product.get_absolute_url }}">{{ product }}</a></li>+ <li>+ <a href="{{ product.get_absolute_url }}">{{ product }}</a>+ </li></ul>{% endblock breadcrumb %}@@ -102,9 +108,11 @@{{ product }}</h1>{% if user.is_staff %}- <p><a href="{% url "dashboard:product-detail" pk=product.pk %}">+ <p>+ <a href="{% url "dashboard:product-detail" pk=product.pk %}">{% trans "Edit in dashboard" context "Product details link text" %}- </a></p>+ </a>+ </p>{% endif %}{% if availability.available %}{% if show_variant_picker %}@@ -131,8 +139,7 @@{% csrf_token %}<div id="variant-picker" data-variant-picker-data="{{ variant_picker_data }}" data-action="{% url 'product:add-to-cart' product_id=product.pk slug=product.get_slug %}"></div>{% else %}- <form id="product-form" role="form" class="product-form clearfix" method="post"- action="{% url 'product:add-to-cart' product_id=product.pk slug=product.get_slug %}" novalidate>+ <form id="product-form" role="form" class="product-form clearfix" method="post" action="{% url 'product:add-to-cart' product_id=product.pk slug=product.get_slug %}" novalidate>{% csrf_token %}{% bootstrap_field form.variant %}<div class="product__info__quantity">diff --git a/templates/styleguide.html b/templates/styleguide.htmlindex 43d4cf51ad..15040e2846 100644--- a/templates/styleguide.html+++ b/templates/styleguide.html@@ -577,15 +577,21 @@<p>Click and edit any item below to see how the component looks with different text</p></div><ul class="breadcrumbs list-unstyled styleguide__section">- <li><a href="/" contenteditable="true">- Home- </a></li>- <li><a href="{% url "profile:details" %}" contenteditable="true">- Your profile- </a></li>- <li><a href="#" contenteditable="true">- Edit address- </a></li>+ <li>+ <a href="/" contenteditable="true">+ Home+ </a>+ </li>+ <li>+ <a href="{% url "profile:details" %}" contenteditable="true">+ Your profile+ </a>+ </li>+ <li>+ <a href="#" contenteditable="true">+ Edit address+ </a>+ </li></ul></div><div id="notifications" class="styleguide__content__block">@@ -752,8 +758,12 @@</p></div><ul class="icons">- <li><a href="#" contenteditable="true">Edit</a></li>- <li><a class="delete-icon"><svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" /></a></li>+ <li>+ <a href="#" contenteditable="true">Edit</a>+ </li>+ <li>+ <a class="delete-icon"><svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" /></a>+ </li></ul><div class="address-delete none"><form>diff --git a/templates/userprofile/address_edit.html b/templates/userprofile/address_edit.htmlindex 950fc36c27..ffbc813a38 100644--- a/templates/userprofile/address_edit.html+++ b/templates/userprofile/address_edit.html@@ -11,20 +11,28 @@{% block breadcrumb %}<ul class="breadcrumbs list-unstyled">- <li><a href="{% url 'home' %}">- {% trans "Home" context "Main navigation item" %}- </a></li>- <li><a href="{% url "profile:details" %}">- {% trans "Your profile" context "Edit/new address breadcrumb" %}- </a></li>+ <li>+ <a href="{% url 'home' %}">+ {% trans "Home" context "Main navigation item" %}+ </a>+ </li>+ <li>+ <a href="{% url "profile:details" %}">+ {% trans "Your profile" context "Edit/new address breadcrumb" %}+ </a>+ </li>{% if address_form.instance.pk %}- <li><a href=".">- {% trans "Edit address" context "Edit address breadcrumb" %}- </a></li>+ <li>+ <a href=".">+ {% trans "Edit address" context "Edit address breadcrumb" %}+ </a>+ </li>{% else %}- <li><a href=".">- {% trans "New address" context "New address breadcrumb" %}- </a></li>+ <li>+ <a href=".">+ {% trans "New address" context "New address breadcrumb" %}+ </a>+ </li>{% endif %}</ul>{% endblock breadcrumb %}diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex e162ba3ecf..6ce0763581 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -12,9 +12,11 @@{% block breadcrumb %}<ul class="breadcrumbs list-unstyled">- <li><a href="{% url 'home' %}">- {% trans "Home" context "Main navigation item" %}- </a></li>+ <li>+ <a href="{% url 'home' %}">+ {% trans "Home" context "Main navigation item" %}+ </a>+ </li><li>{% trans "Your account" context "Main navigation item" %} (<b>{{ user }}</b>)</li></ul>{% endblock breadcrumb %}@@ -25,21 +27,21 @@<h2>{% trans "My account" %}</h2><ul class="nav nav-tabs col-lg-10 m-auto" role="tablist"><li class="nav-item">- <a class="nav-link active" data-toggle="tab" href="#orders" role="tab"><h3>- {% trans "Recent Orders" context "User profile tab" %}- </h3></a>+ <a class="nav-link active" data-toggle="tab" href="#orders" role="tab">+ <h3>{% trans "Recent Orders" context "User profile tab" %}</h3>+ </a></li>{% if user.password %}<li class="nav-item">- <a class="nav-link " data-toggle="tab" href="#password" role="tab"><h3>- {% trans "Change password" context "User profile tab" %}- </h3></a>+ <a class="nav-link " data-toggle="tab" href="#password" role="tab">+ <h3>{% trans "Change password" context "User profile tab" %}</h3>+ </a></li>{% endif %}<li class="nav-item">- <a class="nav-link" data-toggle="tab" href="#addresses" role="tab"><h3>- {% trans "Addresses book" context "User profile tab" %}- </h3></a>+ <a class="nav-link" data-toggle="tab" href="#addresses" role="tab">+ <h3>{% trans "Addresses book" context "User profile tab" %}</h3>+ </a></li></ul></div>@@ -49,18 +51,18 @@{% if orders|length %}<div class="table__header"><div class="row">- <div class="col-md-2 col-3"><small>- {% trans "Order" context "Recent orders column title" %}- </small></div>- <div class="col-md-3 d-none d-md-block"><small>- {% trans "Date" context "Recent orders column title" %}- </small></div>- <div class="col-md-2 col-4 text-right"><small>- {% trans "Summary" context "Recent orders column title" %}- </small></div>- <div class="col-md-4 d-none d-md-block"><small>- {% trans "Status" context "Recent orders column title" %}- </small></div>+ <div class="col-md-2 col-3">+ <small>{% trans "Order" context "Recent orders column title" %}</small>+ </div>+ <div class="col-md-3 d-none d-md-block">+ <small>{% trans "Date" context "Recent orders column title" %}</small>+ </div>+ <div class="col-md-2 col-4 text-right">+ <small>{% trans "Summary" context "Recent orders column title" %}</small>+ </div>+ <div class="col-md-4 d-none d-md-block">+ <small>{% trans "Status" context "Recent orders column title" %}</small>+ </div><div class="col-md-1 col-5"></div></div></div>@@ -107,8 +109,7 @@<form action="" method="post">{% csrf_token %}{% bootstrap_form change_password_form %}- <input type="submit" class="btn primary narrow"- value="{% trans "Change password" context "User profile action" %}">+ <input type="submit" class="btn primary narrow" value="{% trans "Change password" context "User profile action" %}"></form></div></div>@@ -121,12 +122,16 @@<div class="card card-block">{% format_address address %}<ul class="icons">- <li><a href="{% url "profile:address-edit" pk=address.pk %}">- {% trans "Edit" context "User address action" %}- </a></li>- <li><a class="delete-icon">- <svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" />- </a></li>+ <li>+ <a href="{% url "profile:address-edit" pk=address.pk %}">+ {% trans "Edit" context "User address action" %}+ </a>+ </li>+ <li>+ <a class="delete-icon">+ <svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" />+ </a>+ </li></ul>{% include "userprofile/address_delete.html" with pk=address.pk %}</div>