Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix title and content misplacement in modal windows
dominik-zeglenc854c878290f
diff --git a/templates/dashboard/base_modal.html b/templates/dashboard/base_modal.htmlindex 99c7435650..14e2c1b995 100644--- a/templates/dashboard/base_modal.html+++ b/templates/dashboard/base_modal.html@@ -14,9 +14,7 @@</div></div><div class="row">- <div class="col s12">- {% block content %}{% endblock %}- </div>+ {% block content %}{% endblock %}</div></div><div class="modal-footer">diff --git a/templates/dashboard/category/modal/confirm_delete.html b/templates/dashboard/category/modal/confirm_delete.htmlindex c840a1b5d9..0d576e64d0 100644--- a/templates/dashboard/category/modal/confirm_delete.html+++ b/templates/dashboard/category/modal/confirm_delete.html@@ -16,31 +16,33 @@{% 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.- {% endblocktrans %}- </p>- {% endif %}+ <div class="col s12">+ {% 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.+ {% endblocktrans %}+ </p>+ {% endif %}+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/customer/modal/confirm_promote.html b/templates/dashboard/customer/modal/confirm_promote.htmlindex 99636bea2a..9d41da51c2 100644--- a/templates/dashboard/customer/modal/confirm_promote.html+++ b/templates/dashboard/customer/modal/confirm_promote.html@@ -13,9 +13,11 @@{% endblock %}{% block content %}-{% blocktrans trimmed with customer=customer context "Modal promote to staff member text" %}- Are you sure you want to promote {{ customer }} to staff member?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed with customer=customer context "Modal promote to staff member text" %}+ Are you sure you want to promote {{ customer }} to staff member?+ {% endblocktrans %}+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/discount/sale/modal/confirm_delete.html b/templates/dashboard/discount/sale/modal/confirm_delete.htmlindex b725bcfde7..371fea1719 100644--- a/templates/dashboard/discount/sale/modal/confirm_delete.html+++ b/templates/dashboard/discount/sale/modal/confirm_delete.html@@ -13,9 +13,11 @@{% endblock %}{% block content %}-{% blocktrans trimmed context "Remove sale (discount) text" %}- Are you sure you want to remove <strong>{{ sale }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Remove sale (discount) text" %}+ Are you sure you want to remove <strong>{{ sale }}</strong>?+ {% endblocktrans %}+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/discount/voucher/modal/confirm_delete.html b/templates/dashboard/discount/voucher/modal/confirm_delete.htmlindex 7d9fff01b1..3ab9386a87 100644--- a/templates/dashboard/discount/voucher/modal/confirm_delete.html+++ b/templates/dashboard/discount/voucher/modal/confirm_delete.html@@ -15,9 +15,11 @@ Remove voucher {{ voucher }}{% endblock %}{% block content %}-{% blocktrans trimmed context "Remove voucher text" %}-Are you sure you want to remove voucher <strong>{{ voucher }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Remove voucher text" %}+ Are you sure you want to remove voucher <strong>{{ voucher }}</strong>?+ {% endblocktrans %}+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/group/modal/confirm_delete.html b/templates/dashboard/group/modal/confirm_delete.htmlindex 7fe9bf5020..47498f11d8 100644--- a/templates/dashboard/group/modal/confirm_delete.html+++ b/templates/dashboard/group/modal/confirm_delete.html@@ -15,10 +15,12 @@{% endblock %}{% block content %}-{% blocktrans trimmed context "Modal remove group text" %}- Are you sure you want to remove group {{ group }}?- <br> Users might lose permissions related to this group.-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Modal remove group text" %}+ Are you sure you want to remove group {{ group }}?+ <br> Users might lose permissions related to this group.+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/order/modal/cancel_line.html b/templates/dashboard/order/modal/cancel_line.htmlindex 98a44ec556..1c22da69a0 100644--- a/templates/dashboard/order/modal/cancel_line.html+++ b/templates/dashboard/order/modal/cancel_line.html@@ -13,48 +13,52 @@{% endblock %}{% block content %}- {% trans "Are you sure you want remove this order line?" context "Modal remove order line text" %}+ <div class="col s12">+ {% trans "Are you sure you want remove this order line?" context "Modal remove order line text" %}+ </div>{{ form|materializecss }}- <table>- <thead>- <tr>- <th class="wide">- {% trans "Item" context "Modal remove order line table header" %}- </th>- <th>- {% trans "SKU" context "Modal remove order line table header" %}- </th>- <th class="right-align">- {% trans "Price" context "Modal remove order line table header" %}- </th>- <th class="right-align">- {% trans "Quantity" context "Modal remove order line table header" %}- </th>- <th class="right-align">- {% trans "Total" context "Modal remove order line table header" %}- </th>- </tr>- </thead>- <tbody>- <tr>- <td>- {{ item.product_name }}<br>- </td>- <td>- {{ item.product_sku }}- </td>- <td class="right-align">- {% gross item.get_price_per_item html=True %}- </td>- <td class="right-align">- {{ item.quantity }}- </td>- <td class="right-align">- {% gross item.get_total html=True %}- </td>- </tr>- </tbody>- </table>+ <div class="col s12">+ <table>+ <thead>+ <tr>+ <th class="wide">+ {% trans "Item" context "Modal remove order line table header" %}+ </th>+ <th>+ {% trans "SKU" context "Modal remove order line table header" %}+ </th>+ <th class="right-align">+ {% trans "Price" context "Modal remove order line table header" %}+ </th>+ <th class="right-align">+ {% trans "Quantity" context "Modal remove order line table header" %}+ </th>+ <th class="right-align">+ {% trans "Total" context "Modal remove order line table header" %}+ </th>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td>+ {{ item.product_name }}<br>+ </td>+ <td>+ {{ item.product_sku }}+ </td>+ <td class="right-align">+ {% gross item.get_price_per_item html=True %}+ </td>+ <td class="right-align">+ {{ item.quantity }}+ </td>+ <td class="right-align">+ {% gross item.get_total html=True %}+ </td>+ </tr>+ </tbody>+ </table>+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/order/modal/cancel_order.html b/templates/dashboard/order/modal/cancel_order.htmlindex b066c48954..f9964d259e 100644--- a/templates/dashboard/order/modal/cancel_order.html+++ b/templates/dashboard/order/modal/cancel_order.html@@ -8,13 +8,15 @@{% endblock %}{% block title %}-{% trans "Cancel order" trimmed with order=order context "Modal cancel order title" %}+{% trans "Cancel order" context "Modal cancel order title" %}{% endblock %}{% block content %}-{% blocktrans trimmed with order=order context "Modal cancel order text" %}- Are you sure you want cancel order {{ order }}?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed with order=order context "Modal cancel order text" %}+ Are you sure you want cancel order {{ order }}?+ {% endblocktrans %}+ </div>{% endblock %}{% block cancel_action %}diff --git a/templates/dashboard/order/modal/cancel_shipment_group.html b/templates/dashboard/order/modal/cancel_shipment_group.htmlindex fbab40b943..6b861c6a0f 100644--- a/templates/dashboard/order/modal/cancel_shipment_group.html+++ b/templates/dashboard/order/modal/cancel_shipment_group.html@@ -11,9 +11,11 @@{% endblock %}{% block content %}-{% blocktrans trimmed with shipment=group context "Modal cancel shipment group text" %}- After this action {{ shipment }} will be cancelled. Ordered items will be returned to stock.-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed with shipment=group context "Modal cancel shipment group text" %}+ After this action {{ shipment }} will be cancelled. Ordered items will be returned to stock.+ {% endblocktrans %}+ </div>{% endblock %}{% block cancel_action %}diff --git a/templates/dashboard/order/modal/capture.html b/templates/dashboard/order/modal/capture.htmlindex 3695d41427..c92b0d211f 100644--- a/templates/dashboard/order/modal/capture.html+++ b/templates/dashboard/order/modal/capture.html@@ -15,15 +15,17 @@{% block content %}{{ form|materializecss }}- {% trans "Before this action:" context "Modal capture payment title" %}- <ul class="list">- <li class="list-item">{% trans "Order total:" context "Modal capture payment list title" %}- {% gross payment.order.get_total html=True %}- </li>- <li class="list-item">{% trans "Captured amount:" context "Modal capture payment list title" %}- {{ captured|currencyfmt:currency }}- </li>- </ul>+ <div class="col s12">+ {% trans "Before this action:" context "Modal capture payment title" %}+ <ul class="list">+ <li class="list-item">{% trans "Order total:" context "Modal capture payment list title" %}+ {% gross payment.order.get_total html=True %}+ </li>+ <li class="list-item">{% trans "Captured amount:" context "Modal capture payment list title" %}+ {{ captured|currencyfmt:currency }}+ </li>+ </ul>+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/order/modal/order_remove_voucher.html b/templates/dashboard/order/modal/order_remove_voucher.htmlindex 30b3c5bc76..706a7e1c81 100644--- a/templates/dashboard/order/modal/order_remove_voucher.html+++ b/templates/dashboard/order/modal/order_remove_voucher.html@@ -13,9 +13,11 @@{% endblock %}{% block content %}-{% blocktrans trimmed with order=order context "Modal remove voucher from order text" %}- Are you sure you want remove voucher discount from order {{ order }}?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed with order=order context "Modal remove voucher from order text" %}+ Are you sure you want remove voucher discount from order {{ order }}?+ {% endblocktrans %}+ </div>{% endblock %}{% block cancel_action %}diff --git a/templates/dashboard/order/modal/refund.html b/templates/dashboard/order/modal/refund.htmlindex 78c8cf538e..c3f6d84b1c 100644--- a/templates/dashboard/order/modal/refund.html+++ b/templates/dashboard/order/modal/refund.html@@ -16,15 +16,17 @@{% block content %}{{ form|materializecss }}- {% trans "Before this action:" context "Modal refund payment title" %}- <ul class="list">- <li class="list-item">{% trans "Order total:" context "Modal refund payment list title" %}- {% gross payment.order.get_total html=True %}- </li>- <li class="list-item">{% trans "Captured amount:" context "Modal refund payment list title" %}- {{ captured|currencyfmt:currency }}- </li>- </ul>+ <div class="col s12">+ {% trans "Before this action:" context "Modal refund payment title" %}+ <ul class="list">+ <li class="list-item">{% trans "Order total:" context "Modal refund payment list title" %}+ {% gross payment.order.get_total html=True %}+ </li>+ <li class="list-item">{% trans "Captured amount:" context "Modal refund payment list title" %}+ {{ captured|currencyfmt:currency }}+ </li>+ </ul>+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/order/modal/release.html b/templates/dashboard/order/modal/release.htmlindex 596a0854a7..9802bfd3be 100644--- a/templates/dashboard/order/modal/release.html+++ b/templates/dashboard/order/modal/release.html@@ -12,7 +12,9 @@{% endblock %}{% block content %}-{% trans "Do you want to release the payment?" context "Modal release payment text" %}+ <div class="col s12">+ {% trans "Do you want to release the payment?" context "Modal release payment text" %}+ </div>{{ form|materializecss }}{% endblock %}diff --git a/templates/dashboard/order/modal/ship_shipment_group.html b/templates/dashboard/order/modal/ship_shipment_group.htmlindex f6538182e0..e8bfe08ef4 100644--- a/templates/dashboard/order/modal/ship_shipment_group.html+++ b/templates/dashboard/order/modal/ship_shipment_group.html@@ -13,8 +13,10 @@{% endblock %}{% block content %}-{% trans "Dispatch this shipment to the following address:" context "Modal ship shipment group text" %}-<div class="address">{% format_address order.shipping_address %}</div>+ <div class="col s12">+ {% trans "Dispatch this shipment to the following address:" context "Modal ship shipment group text" %}+ <div class="address">{% format_address order.shipping_address %}</div>+ </div>{{ form|materializecss }}{% endblock %}diff --git a/templates/dashboard/product/modal/confirm_delete.html b/templates/dashboard/product/modal/confirm_delete.htmlindex 56a34fcf1a..6aca87d0b2 100644--- a/templates/dashboard/product/modal/confirm_delete.html+++ b/templates/dashboard/product/modal/confirm_delete.html@@ -16,9 +16,11 @@{% endblock %}{% block content %}-{% blocktrans trimmed context "Modal remove product text" %}- Are you sure you want to remove product <strong>{{ product }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Modal remove product text" %}+ Are you sure you want to remove product <strong>{{ product }}</strong>?+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.htmlindex 324ae76355..4e0d05f036 100644--- a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html+++ b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html@@ -15,9 +15,11 @@{% endblock title %}{% block content %}-{% blocktrans trimmed context "Modal remove attribute text" %}- Are you sure you want to remove attribute <strong>{{ attribute }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Modal remove attribute text" %}+ Are you sure you want to remove attribute <strong>{{ attribute }}</strong>?+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/product/product_attribute/values/modal/confirm_delete.html b/templates/dashboard/product/product_attribute/values/modal/confirm_delete.htmlindex f25430f2bd..d18837b9b0 100644--- a/templates/dashboard/product/product_attribute/values/modal/confirm_delete.html+++ b/templates/dashboard/product/product_attribute/values/modal/confirm_delete.html@@ -15,9 +15,11 @@ Delete attribute choice value {{ value }}{% endblock title %}{% block content %}-{% blocktrans trimmed context "Modal delete attribute text" %}- Are you sure you want to remove attribute choice value <strong>{{ value }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Modal delete attribute text" %}+ Are you sure you want to remove attribute choice value <strong>{{ value }}</strong>?+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/product/product_class/modal/confirm_delete.html b/templates/dashboard/product/product_class/modal/confirm_delete.htmlindex 4da82930ba..20f4407c36 100644--- a/templates/dashboard/product/product_class/modal/confirm_delete.html+++ b/templates/dashboard/product/product_class/modal/confirm_delete.html@@ -17,22 +17,24 @@{% endblock title %}{% block content %}-<p>- {% blocktrans trimmed context "Modal remove product class text" %}- Are you sure you want to remove product class <strong>{{ product_class }}</strong>?- {% 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 %}-</p>+ <div class="col s12">+ <p>+ {% blocktrans trimmed context "Modal remove product class text" %}+ Are you sure you want to remove product class <strong>{{ product_class }}</strong>?+ {% 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 %}+ </p>+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/product/product_image/modal/confirm_delete.html b/templates/dashboard/product/product_image/modal/confirm_delete.htmlindex befec1edba..9ad0c5bb05 100644--- a/templates/dashboard/product/product_image/modal/confirm_delete.html+++ b/templates/dashboard/product/product_image/modal/confirm_delete.html@@ -14,10 +14,12 @@{% endblock %}{% block content %}-<div class="center-align">- <img class="responsive-img" src="{{ image.image.crop.255x255 }}" srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x" alt="">-</div>-<p>{% trans "Are you sure you want to remove product image?" context "Modal remove image text" %}</p>+ <div class="col s12">+ <div class="center-align">+ <img class="responsive-img" src="{{ image.image.crop.255x255 }}" srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x" alt="">+ </div>+ <p>{% trans "Are you sure you want to remove product image?" context "Modal remove image text" %}</p>+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/product/product_variant/modal/confirm_delete.html b/templates/dashboard/product/product_variant/modal/confirm_delete.htmlindex 347e958ba6..d2eff9198c 100644--- a/templates/dashboard/product/product_variant/modal/confirm_delete.html+++ b/templates/dashboard/product/product_variant/modal/confirm_delete.html@@ -17,16 +17,18 @@{% endblock %}{% block content %}-<p>-{% blocktrans context "Dashboard confirmation modal" %}- Are you sure you want to remove variant <strong>{{ variant }}</strong> of product {{ product }}?-{% endblocktrans %}-</p>-{% if is_only_variant %}- <p>- {% trans "This is the only variant of this product. If you remove it, the product will become unavailable." context "Dashboard confirmation modal" %}- </p>-{% endif %}+ <div class="col s12">+ <p>+ {% blocktrans context "Dashboard confirmation modal" %}+ Are you sure you want to remove variant <strong>{{ variant }}</strong> of product {{ product }}?+ {% endblocktrans %}+ </p>+ {% if is_only_variant %}+ <p>+ {% trans "This is the only variant of this product. If you remove it, the product will become unavailable." context "Dashboard confirmation modal" %}+ </p>+ {% endif %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/product/product_variant/modal/select_images.html b/templates/dashboard/product/product_variant/modal/select_images.htmlindex 10a57bad05..7a635c78ab 100644--- a/templates/dashboard/product/product_variant/modal/select_images.html+++ b/templates/dashboard/product/product_variant/modal/select_images.html@@ -15,7 +15,9 @@{% endblock %}{% block content %}- <p>{% render_image_choice form.images %}</p>+ <div class="col s12">+ <p>{% render_image_choice form.images %}</p>+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/product/stock/modal/confirm_delete.html b/templates/dashboard/product/stock/modal/confirm_delete.htmlindex 9d2a73adcd..cd6885927b 100644--- a/templates/dashboard/product/stock/modal/confirm_delete.html+++ b/templates/dashboard/product/stock/modal/confirm_delete.html@@ -16,9 +16,11 @@{% endblock title %}{% block content %}-{% blocktrans context "Dashboard confirmation modal" %}- Are you sure you want to remove stock <strong>{{ stock }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans context "Dashboard confirmation modal" %}+ Are you sure you want to remove stock <strong>{{ stock }}</strong>?+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/product/stock_location/modal/confirm_delete.html b/templates/dashboard/product/stock_location/modal/confirm_delete.htmlindex ddba7583c3..21dff4b29e 100644--- a/templates/dashboard/product/stock_location/modal/confirm_delete.html+++ b/templates/dashboard/product/stock_location/modal/confirm_delete.html@@ -15,20 +15,22 @@ Remove stock location {{ location }}{% endblock title %}{% block content %}- <p>- {% blocktrans trimmed context "Modal remove stock location text" %}- Are you sure you want to remove stock location <strong>{{ location }}</strong>?- {% endblocktrans %}- </p>- {% if stock_count %}+ <div class="col s12"><p>- {% blocktrans trimmed count counter=stock_count context "Modal remove stock location text" %}- There is one stock associated with this stock location that will be removed.- {% plural %}- There are {{ counter }} stocks associated with this stock location that will be removed.+ {% blocktrans trimmed context "Modal remove stock location text" %}+ Are you sure you want to remove stock location <strong>{{ location }}</strong>?{% endblocktrans %}</p>- {% endif %}+ {% if stock_count %}+ <p>+ {% blocktrans trimmed count counter=stock_count context "Modal remove stock location text" %}+ There is one stock associated with this stock location that will be removed.+ {% plural %}+ There are {{ counter }} stocks associated with this stock location that will be removed.+ {% endblocktrans %}+ </p>+ {% endif %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/shipping/modal/confirm_delete.html b/templates/dashboard/shipping/modal/confirm_delete.htmlindex f574291add..7af61889ad 100644--- a/templates/dashboard/shipping/modal/confirm_delete.html+++ b/templates/dashboard/shipping/modal/confirm_delete.html@@ -17,9 +17,11 @@ Remove shipping method {{ shipping_method }}{% endblock %}{% block content %}-{% blocktrans context "Dashboard confirmation modal" %}-Are you sure you want to remove shipping method <strong>{{ shipping_method}}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans context "Dashboard confirmation modal" %}+ Are you sure you want to remove shipping method <strong>{{ shipping_method}}</strong>?+ {% endblocktrans %}+ </div>{% endblock %}{% block primary_action %}diff --git a/templates/dashboard/shipping/modal/country_confirm_delete.html b/templates/dashboard/shipping/modal/country_confirm_delete.htmlindex 963bac4e7e..46032e5ef7 100644--- a/templates/dashboard/shipping/modal/country_confirm_delete.html+++ b/templates/dashboard/shipping/modal/country_confirm_delete.html@@ -15,9 +15,11 @@{% endblock title %}{% block content %}-{% blocktrans trimmed context "Modal remove shipping method country text" %}- Are you sure you want to remove shipping <strong>{{ country }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Modal remove shipping method country text" %}+ Are you sure you want to remove shipping <strong>{{ country }}</strong>?+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/sites/modal/confirm_delete.html b/templates/dashboard/sites/modal/confirm_delete.htmlindex 94499a5be1..1220c281e4 100644--- a/templates/dashboard/sites/modal/confirm_delete.html+++ b/templates/dashboard/sites/modal/confirm_delete.html@@ -15,9 +15,11 @@{% endblock title %}{% block content %}-{% blocktrans trimmed context "Modal delete authorization key text" %}- Are you sure you want to remove authorization key <strong>{{ key }}</strong>?-{% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Modal delete authorization key text" %}+ Are you sure you want to remove authorization key <strong>{{ key }}</strong>?+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/dashboard/staff/modal/confirm_delete.html b/templates/dashboard/staff/modal/confirm_delete.htmlindex 53e0f70ee5..4eb5769bd4 100644--- a/templates/dashboard/staff/modal/confirm_delete.html+++ b/templates/dashboard/staff/modal/confirm_delete.html@@ -15,12 +15,14 @@{% endblock %}{% block content %}- {% blocktrans trimmed context "Modal remove group text" %}- <p>Are you sure you want to remove staff member?</p>- <p>Deleting staff member also removes him from customer list and removes all his related data (orders, payment etc.).</p>- <p>We strongly recommend not deleting user accounts that were used for purchases (for example customer which was promoted with staff member status).</p>- <p>{{ staff }} has <strong>{{ orders }}</strong> orders.</p>- {% endblocktrans %}+ <div class="col s12">+ {% blocktrans trimmed context "Modal remove group text" %}+ <p>Are you sure you want to remove staff member?</p>+ <p>Deleting staff member also removes him from customer list and removes all his related data (orders, payment etc.).</p>+ <p>We strongly recommend not deleting user accounts that were used for purchases (for example customer which was promoted with staff member status).</p>+ <p>{{ staff }} has <strong>{{ orders }}</strong> orders.</p>+ {% endblocktrans %}+ </div>{% endblock content %}{% block primary_action %}diff --git a/templates/materializecssform/field.html b/templates/materializecssform/field.htmlindex b30c353ade..b2daa252b3 100644--- a/templates/materializecssform/field.html+++ b/templates/materializecssform/field.html@@ -148,30 +148,26 @@{% endif %}</div>{% elif field|is_textarea %}- <div class="col s12">- <div class="row">- <div class="input-field col s12 {{ classes.label }}">- <textarea id="{{ field.auto_id }}"- class="materialize-textarea {{ field.field.widget.attrs.class }}"- name="{{ field.name }}">{% if field.value %}{{ field.value }}{% endif %}</textarea>- {% if field.auto_id %}- <label class="{{ classes.label }}" for="{{ field.auto_id }}">- {{ field.label }}- {% if not field.field.required %}- {% trans "(optional)" context "Dashboard form labels" %}- {% endif %}- </label>- {% endif %}- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>+ <div class="input input-field col {{ classes.label }}">+ <textarea id="{{ field.auto_id }}"+ class="materialize-textarea {{ field.field.widget.attrs.class }}"+ name="{{ field.name }}">{% if field.value %}{{ field.value }}{% endif %}</textarea>+ {% if field.auto_id %}+ <label class="{{ classes.label }}" for="{{ field.auto_id }}">+ {{ field.label }}+ {% if not field.field.required %}+ {% trans "(optional)" context "Dashboard form labels" %}{% endif %}- </div>- </div>+ </label>+ {% endif %}+ {% for error in field.errors %}+ <p class="help-block materialize-red-text">{{ error }}</p>+ {% endfor %}+ {% if field.help_text %}+ <p class="help-block">+ {{ field.help_text|safe }}+ </p>+ {% endif %}</div>{% elif field|is_file %}<div class="input col {{ classes.label }}">