Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve styling, restore colors
Patryk Zawadzkie4ab3edd9eba
diff --git a/saleor/dashboard/customer/views.py b/saleor/dashboard/customer/views.pyindex f81eecf36d..9c1089b903 100644--- a/saleor/dashboard/customer/views.py+++ b/saleor/dashboard/customer/views.py@@ -28,13 +28,9 @@ def customer_list(request):else:customers = customers.filter(orders__status__in=['new', 'payment-pending', 'fully-paid'])- title = npgettext_lazy(- 'Customer list page title',- '%d result',- 'Results (%d)') % len(customers)customers = get_paginator_items(customers, 30, request.GET.get('page'))- ctx = {'customers': customers, 'form': form, 'title': title,+ ctx = {'customers': customers, 'form': form,'default_pagination_params': form_values}return TemplateResponse(request, 'dashboard/customer/list.html', ctx)diff --git a/saleor/static/scss/dashboard/components/_card.scss b/saleor/static/scss/dashboard/components/_card.scssindex d0c0bd5160..221660c8e6 100644--- a/saleor/static/scss/dashboard/components/_card.scss+++ b/saleor/static/scss/dashboard/components/_card.scss@@ -3,13 +3,16 @@.card-title {display: block;line-height: 28px;- margin-bottom: 10px;+ margin: 8px 0 16px;}&--no-data {padding-top: 6px;}}+ .row {+ margin-bottom: 0;+ }}.card {diff --git a/saleor/static/scss/dashboard/components/_data-table.scss b/saleor/static/scss/dashboard/components/_data-table.scssindex e708fdc1b5..92bb03b1a3 100644--- a/saleor/static/scss/dashboard/components/_data-table.scss+++ b/saleor/static/scss/dashboard/components/_data-table.scss@@ -11,45 +11,42 @@}}- &-actions {+ &-action {+ border-top: 1px solid $table-border-color;+ padding: 10px 8px;+ }++ &-hader-action {border-bottom: 1px solid $table-border-color;padding: 14px 8px;}&-header {- padding: 21px 24px;+ align-items: center;+ display: flex;+ height: 64px;&--no-data {padding: 20px 20px 0;}- }-- &-title {- font-weight: 300;- margin: 0;a {color: $secondary-color;}.label {- float: right;- margin-top: -4px;+ line-height: 1;+ margin-right: 24px;}}- .label {- @extend .grey-text;- font-size: 12px;- text-transform: uppercase;-- &.label-danger {- @extend .red-text;- }-- &.label-success {- @extend .green-text;- }+ &-title {+ flex-grow: 1;+ font-size: 20px;+ font-weight: 300;+ line-height: 1;+ margin: 0;+ padding: 0 24px;}input[type=checkbox].filled-in + label {@@ -63,7 +60,6 @@}th, td {- font-size: 13px;height: 48px;overflow: hidden;padding: 0 28px;@@ -86,6 +82,17 @@&.no-padded {padding: 0;}++ .dropdown-button {+ color: inherit;+ display: inline-block;+ i {+ @extend .grey-text;+ font-size: 16px;+ text-align: center;+ width: 16px;+ }+ }}th {@@ -111,21 +118,6 @@.wide {width: 99%;}-- &.hoverable {- box-shadow: none;- }-- .dropdown-button {- padding: 15px 28px;- }-- .dropdown-content {- left: auto !important;- right: 0;- top: 0;- white-space: nowrap;- }}.data-table {diff --git a/saleor/static/scss/dashboard/components/_form.scss b/saleor/static/scss/dashboard/components/_form.scssindex ad12a6fa88..39585fb229 100644--- a/saleor/static/scss/dashboard/components/_form.scss+++ b/saleor/static/scss/dashboard/components/_form.scss@@ -33,8 +33,9 @@.input-field {margin-top: 0;- padding-top: 1rem;+ padding-top: 20px;label, label.active {+ font-size: 12px;top: 0;transform: none;}diff --git a/saleor/static/scss/dashboard/components/_formset.scss b/saleor/static/scss/dashboard/components/_formset.scssindex dcde28eb19..2e6f6d1672 100644--- a/saleor/static/scss/dashboard/components/_formset.scss+++ b/saleor/static/scss/dashboard/components/_formset.scss@@ -59,10 +59,6 @@width: 99%;}- &.hoverable {- box-shadow: none;- }-.dropdown-button {padding: 15px 28px;}diff --git a/saleor/static/scss/dashboard/components/_nav.scss b/saleor/static/scss/dashboard/components/_nav.scssindex 9ca153584a..c118dc94ab 100644--- a/saleor/static/scss/dashboard/components/_nav.scss+++ b/saleor/static/scss/dashboard/components/_nav.scss@@ -114,7 +114,7 @@ header {&-section {p {@extend .grey-text;- @extend .text-darken-1;+ @extend .text-lighten-1;margin: 0;height: 40px;line-height: 40px;diff --git a/saleor/static/scss/dashboard/components/_select2.scss b/saleor/static/scss/dashboard/components/_select2.scssindex 7a5662d36d..8a8be51b81 100644--- a/saleor/static/scss/dashboard/components/_select2.scss+++ b/saleor/static/scss/dashboard/components/_select2.scss@@ -3,6 +3,7 @@&.select2-container--default, &.select2-container--default.select2-container--focus {border-bottom: $input-border;+ box-sizing: border-box;.select2-results__options {background-color: $dropdown-bg-color;@@ -38,7 +39,6 @@border: none;border-radius: 0;box-sizing: border-box;- line-height: calc(3rem - 1px);.select2-selection__rendered {padding: 0;@@ -48,6 +48,8 @@li.select2-selection__choice {@extend .chip;border: 0;+ margin-top: 3px;+ margin-bottom: 4px;.select2-selection__choice__remove {color: inherit;@@ -72,7 +74,8 @@.select2-search__field {background: transparent;height: auto;- margin: 0;+ line-height: 32px;+ margin: 3px 0 4px;padding-left: 0;&:focus {diff --git a/saleor/static/scss/dashboard/dashboard.scss b/saleor/static/scss/dashboard/dashboard.scssindex 3c000ffc27..60707babc4 100644--- a/saleor/static/scss/dashboard/dashboard.scss+++ b/saleor/static/scss/dashboard/dashboard.scss@@ -1,13 +1,15 @@$button-padding: 0 16px;-$button-flat-color: #EC407A;+$button-flat-color: #26A69A;+$card-link-color: #26A69A;+$card-padding: 16px;$font-size-action-icon: 18px;$header-height: 64px;$navbar-height: 56px;$navbar-height-mobile: 64px;$placeholder-text-color: white;-$primary-color: #0097A7;-$primary-color-light: #00BCD4;-$secondary-color: #EC407A;+$primary-color: #E57373;+$primary-color-light: #EF9A9A;+$secondary-color: #26A69A;$sidenav-font-color: #616161;$sidenav-padding: 8px;$subheader-height: 48px;@@ -134,22 +136,17 @@ $roboto-font-path: "~materialize-css/fonts/roboto/";font-size: 120%;}-#order-details {- .order-summary {- td {- padding: 5px 5px;- }- .order-user {- display: block;- overflow: hidden;- text-overflow: ellipsis;- width: 100px;- min-width: 100%;- }+.label {+ @extend .grey-text;+ font-size: 12px;+ text-transform: uppercase;++ &.label-danger {+ @extend .red-text;}- #order-notes {- box-shadow: none;+ &.label-success {+ @extend .green-text;}}@@ -190,10 +187,23 @@ $roboto-font-path: "~materialize-css/fonts/roboto/";.currency {@extend .grey-text;font-size: 12px;+ font-weight: normal;}html {background: #f5f5f5;+ @media only screen and (min-width: 0) {+ font-size: 14px;+ }++ @media only screen and (min-width: $large-screen) {+ font-size: 13px;+ }+}++h6 {+ @extend .grey-text;+ font-size: 13px;}@import "components/breadcrumbs";diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.htmlindex ee5199c146..cb5250c466 100644--- a/templates/dashboard/customer/detail.html+++ b/templates/dashboard/customer/detail.html@@ -30,14 +30,14 @@<div class="col s12 l8"><div class="card"><div class="data-table-header{% if not customer_orders %} data-table-header--no-data{% endif %}">- <span class="card-title black-text">- {% trans "Order history" context "Customer orders table title" %}- </span>+ <h5 class="data-table-title">+ {% trans "Order history" context "Customer orders table title" %}+ </h5></div>{% if customer_orders %}<div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><thead><tr><th>{% trans "Number" context "Customer orders table header" %}</th>diff --git a/templates/dashboard/customer/list.html b/templates/dashboard/customer/list.htmlindex 607b99c21d..381fa51773 100644--- a/templates/dashboard/customer/list.html+++ b/templates/dashboard/customer/list.html@@ -50,10 +50,6 @@</div><div class="card">- <div class="data-table-header{% if not customers %} data-table-header--no-data{% endif %}">- <h5 class="card-title black-text">{{ title }}</h5>- </div>-{% if customers %}<div class="data-table-container"><table class="bordered highlight responsive data-table">diff --git a/templates/dashboard/discount/sale_list.html b/templates/dashboard/discount/sale_list.htmlindex 72bb380e20..1ba15938f9 100644--- a/templates/dashboard/discount/sale_list.html+++ b/templates/dashboard/discount/sale_list.html@@ -30,7 +30,7 @@{% if sales %}<div class="card"><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><thead><tr><th>{% trans "Name" context "Sale (discount) table header" %}</th>diff --git a/templates/dashboard/discount/voucher_list.html b/templates/dashboard/discount/voucher_list.htmlindex 43cdbf0c93..d0891a09b2 100644--- a/templates/dashboard/discount/voucher_list.html+++ b/templates/dashboard/discount/voucher_list.html@@ -30,7 +30,7 @@{% if vouchers %}<div class="card"><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><thead><tr><th class="wide">{% trans "Name" context "Voucher table header" %}</th>diff --git a/templates/dashboard/index.html b/templates/dashboard/index.htmlindex c8677c46a9..059c449925 100644--- a/templates/dashboard/index.html+++ b/templates/dashboard/index.html@@ -9,7 +9,7 @@<div class="col s12"><div class="card"><div class="data-table-header{% if not preauthorized_payments %} data-table-header--no-data{% endif %}">- <span class="card-title black-text">{% trans "Preauthorized payments" context "Dashboard homepage table title" %}</span>+ <span class="data-table-title">{% trans "Preauthorized payments" context "Dashboard homepage table title" %}</span></div>{% if preauthorized_payments %}@@ -44,7 +44,7 @@<div class="card"><div class="data-table-header{% if not orders_to_ship %} data-table-header--no-data{% endif %}">- <span class="card-title black-text">+ <span class="data-table-title">{% trans "Orders ready for shipment" context "Dashboard homepage table title" %}</span></div>@@ -60,7 +60,7 @@<div class="card"><div class="data-table-header{% if not preauthorized_payments %} data-table-header--no-data{% endif %}">- <span class="card-title">{% trans "Products with low stock" context "Dashboard homepage table title" %}</span>+ <span class="data-table-title">{% trans "Products with low stock" context "Dashboard homepage table title" %}</span></div>{% if low_stock %}diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex a04545f6c4..224e79fb5f 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -61,35 +61,58 @@<div class="row tab-content" id="order-details"><div class="col s12 l4 switch-two-columns">- <div class="card grey lighten-4">- <div class="card-content data-table-container">- <span class="card-title black-text">{% trans "Order summary" context "Order summary title" %}</span>+ <div class="card">+ <div class="card-content">+ <h5 class="card-title">{% trans "Order summary" context "Order summary title" %}</h5>++ <div class="row">+ <div class="col s4 l12">+ <h6>+ {% trans "Customer" context "Order summary card header" %}+ </h6>+ <p>+ {% if order.user %}+ <a href="{% url "dashboard:customer-details" pk=order.user.pk %}">{{ order.user }}</a>+ {% else %}+ {% trans "Guest" context "Anonymous user account value" %}+ {% endif %}+ </p>+ </div>+ <div class="col s4 l12">+ <h6>+ {% trans "Order status" context "Order summary card header" %}+ </h6>+ <p>+ {% render_status order.status order.get_status_display %}+ </p>+ </div>+ <div class="col s4 l12">+ <h6>+ {% trans "Payment status" context "Order summary card header" %}+ </h6>+ <p>+ {% if payment %}+ {% render_status payment.status payment.get_status_display %}+ {% else %}+ {% trans "N/A" context "Payment status not available" %}+ {% endif %}+ </p>+ </div>+ </div>+ </div>- <table class="order-summary responsive-table">- <tbody>- <tr>- <td>{% trans "Account" context "Order summary card header" %}</td>- <td class="right-align">- {% if order.user %}- <a class="order-user" href="{% url "dashboard:customer-details" pk=order.user.pk %}">{{ order.user }}</a>- {% else %}- {% trans "Guest" context "Anonymous user account value" %}- {% endif %}- </td>- </tr>- <tr>- <td>{% trans "Order status" context "Order summary card header" %}</td>- <td class="right-align">{% render_status order.status order.get_status_display %}</td>- </tr>+ <div class="data-table-container">+ <table class="data-table bordered highlight">+ <tfoot><tr>- <td>{% trans "Payment status" context "Order summary card header" %}</td>- <td class="right-align">- {% if payment %}{% render_status payment.status payment.get_status_display %}- {% else %}{% trans "N/A" context "Payment status not available" %} %}{% endif %}</td>+ <td><strong>{% trans "Outstanding balance" context "Order summary card header" %}</strong></td>+ <td class="right-align"><strong>{% gross balance html=True %}</strong></td></tr>+ </tfoot>+ <tbody><tr><td>{% trans "Order total" context "Order summary card header" %}</td>- <td class="right-align"><strong>{% gross order.get_total html=True %}</strong></td>+ <td class="right-align">{% gross order.get_total html=True %}</td></tr><tr><td>{% trans "Preauthorized amount" context "Order summary card header" %}</td>@@ -101,26 +124,22 @@<td>{% trans "Captured amount" context "Order summary card header" %}</td><td class="right-align">{% gross captured html=True %}</td></tr>- <tr>- <td>{% trans "Outstanding balance" context "Order summary card header" %}</td>- <td class="right-align">{% gross balance html=True %}</td>- </tr></tbody></table></div>{% if can_capture or can_refund or can_release %}- <div class="card-action">+ <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="modal-trigger-custom">{% trans "Capture" context "Order summary card action" %}</a>+ class="btn btn-flat modal-trigger-custom">{% 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="modal-trigger-custom">{% trans "Refund" context "Order summary card action" %}</a>+ class="btn btn-flat modal-trigger-custom">{% 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="modal-trigger-custom">{% trans "Release" context "Order summary card action" %}</a>+ class="btn btn-flat modal-trigger-custom">{% trans "Release" context "Order summary card action" %}</a>{% endif %}</div>{% endif %}@@ -130,15 +149,11 @@<div class="row">{% if address %}<div class="col s12 m6 l12">- <div class="card grey lighten-4">+ <div class="card"><div class="card-content"><span class="card-title black-text">{% trans "Shipping address" context "Shipping address card title" %}</span>{% include 'dashboard/includes/_address.html' with address=address only %}-- <div>- <i class="material-icons">email</i> <a href="mailto:{{ order.user_email }}">{{ order.user_email }}</a>- </div></div><div class="card-action">@@ -152,7 +167,7 @@{% endif %}<div class="col s12 {% if address %}m6{% else %}m12{% endif %} l12">- <div class="card grey lighten-4">+ <div class="card"><div class="card-content">{% with order.billing_address as address %}<span class="card-title black-text">@@ -160,9 +175,6 @@</span>{% include 'dashboard/includes/_address.html' with address=address only %}- <div>- <i class="material-icons">email</i> <a href="mailto:{{ order.user_email }}">{{ order.user_email }}</a>- </div>{% endwith %}</div>@@ -181,29 +193,16 @@{% for group in groups %}<div class="card"><div class="data-table-header">- <h5 class="data-table-title">- {% blocktrans trimmed with shipment=group.id context "Shipment group table title" %}- Shipment #{{ shipment }}- {% endblocktrans %}- {% if group.can_cancel %}- <a class="dropdown-button right" href="#" data-activates="group-actions-{{ group.pk }}" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- {% endif %}- {% render_status group.status group.get_status_display %}- </h5>- <ul id="group-actions-{{ group.pk }}" class="dropdown-content">- <li>- <a href="#base-modal" data-href="{% url 'dashboard:cancel-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="modal-trigger-custom"- title="{% trans "Cancel group" context "Shipment group table action" %}">- {% trans "Cancel group" context "Shipment group table action" %}- </a>- </li>- </ul>+ <h5 class="data-table-title">+ {% blocktrans trimmed with shipment=group.id context "Shipment group table title" %}+ Shipment #{{ shipment }}+ {% endblocktrans %}+ </h5>+ {% render_status group.status group.get_status_display %}</div><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><thead><tr><th class="wide">{% trans "Item" context "Shipment group table header" %}</th>@@ -211,7 +210,6 @@<th class="right-align">{% trans "Price" context "Shipment group table header" %}</th><th class="right-align">{% trans "Quantity" context "Shipment group table header" %}</th><th class="right-align">{% trans "Total" context "Shipment group table header" %}</th>- <th class="no-padded"></th></tr></thead>@@ -226,7 +224,6 @@<td class="right-align">{% gross group.shipping_price html=True %}</td>- <td class="no-padded"></td></tr>{% endif %}</tfoot>@@ -239,12 +236,11 @@</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>- <td class="right-align no-padded">+ <td class="right-align">{% if group.status != 'cancelled' %}<a class="dropdown-button" href="#" data-activates="line-actions-{{ item.pk }}" data-constrainwidth="false">- <i class="material-icons">more_vert</i>+ {{ item.quantity }}+ <i class="material-icons">arrow_drop_down</i></a><ul id="line-actions-{{ item.pk }}" class="dropdown-content"><li>@@ -266,19 +262,31 @@</a></li></ul>+ {% else %}+ {{ item.quantity }}{% endif %}</td>+ <td class="right-align">{% gross item.get_total html=True %}</td></tr>{% endfor %}</tbody></table></div>- {% if group.can_ship %}- <div class="card-action">- <a href="#base-modal" data-href="{% url 'dashboard:ship-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="modal-trigger-custom">- {% trans "Ship" context "Shipment group table action" %}- </a>+ {% if group.can_ship or group.can_cancel %}+ <div class="data-table-action">+ {% if group.can_ship %}+ <a href="#base-modal" data-href="{% url 'dashboard:ship-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="btn btn-flat modal-trigger-custom">+ {% trans "Dispatch" context "Shipment group table action" %}+ </a>+ {% endif %}++ {% if group.can_cancel %}+ <a href="#base-modal" data-href="{% url 'dashboard:cancel-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="btn btn-flat modal-trigger-custom"+ title="{% trans "Cancel group" context "Shipment group table action" %}">+ {% trans "Cancel this shipment" context "Shipment group table action" %}+ </a>+ {% endif %}</div>{% else %}{% if group.tracking_number %}@@ -294,7 +302,7 @@<div class="card" id="order-totals"><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><tfoot><tr><td>@@ -303,7 +311,6 @@<td>{% gross order.get_total html=True %}</td>- <td class="no-padded"></td></tr></tfoot>@@ -315,28 +322,21 @@<td class="right-align">{% gross order.get_subtotal_without_voucher html=True %}</td>- <td class="no-padded"></td></tr><tr><td>{% trans "Shipping" context "Order totals header" %}</td><td class="right-align">{% gross order.get_total_shipping html=True %}</td>- <td class="no-padded"></td></tr>{% if order.discount_amount.gross %}<tr><td>- {% blocktrans trimmed with voucher=order.discount_name context "Order totals header" %}- Voucher {{ voucher }}- {% endblocktrans %}- </td>- <td class="right-align">- {% gross order.discount|discount_amount_for:order.total html=True %}- </td>- <td class="no-padded"><a class="dropdown-button" href="#" data-activates="voucher-actions" data-constrainwidth="false">- <i class="material-icons">more_vert</i>+ {% blocktrans trimmed with voucher=order.discount_name context "Order totals header" %}+ Voucher {{ voucher }}+ {% endblocktrans %}+ <i class="material-icons">arrow_drop_down</i></a><ul id="voucher-actions" class="dropdown-content">@@ -349,6 +349,9 @@</li></ul></td>+ <td class="right-align">+ {% gross order.discount|discount_amount_for:order.total html=True %}+ </td></tr>{% endif %}</tbody>@@ -386,7 +389,7 @@{% if all_payments %}<div class="card"><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><thead><tr><th></th>@@ -418,7 +421,7 @@<div class="card tab-content" id="order-history"><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><thead><tr><th>{% trans "Date" context "Order history table header" %}</th>diff --git a/templates/dashboard/order/modal_cancel_delivery_group.html b/templates/dashboard/order/modal_cancel_delivery_group.htmlindex dbe6077600..d8049d0e57 100644--- a/templates/dashboard/order/modal_cancel_delivery_group.html+++ b/templates/dashboard/order/modal_cancel_delivery_group.html@@ -8,15 +8,15 @@<h5>{% trans "Cancel delivery group?" context "Modal cancel delivery group title" %}</h5><p>{% blocktrans trimmed context "Modal cancel delivery group text" %}- After this action, {{ group }} will be cancelled. Ordered items will be returned to stock.+ After this action {{ group }} will be cancelled. Ordered items will be returned to stock.{% endblocktrans %}</p></div><div class="modal-footer"><button type="submit" class="modal-action btn-flat">- {% trans "Cancel group" context "Modal cancel delivery group primary action" %}</button>+ {% trans "Cancel this shipment" context "Modal cancel delivery group primary action" %}</button><a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat">- {% trans "Cancel" context "Modal cancel delivery group secondary action" %}</a>+ {% trans "Abort" context "Modal cancel delivery group secondary action" %}</a></div></form>diff --git a/templates/dashboard/order/modal_ship_delivery_group.html b/templates/dashboard/order/modal_ship_delivery_group.htmlindex a7fc0c640d..21c5caafe3 100644--- a/templates/dashboard/order/modal_ship_delivery_group.html+++ b/templates/dashboard/order/modal_ship_delivery_group.html@@ -5,8 +5,8 @@{% csrf_token %}<div class="modal-content">- <h5>{% trans "Ship delivery group" context "Modal ship delivery group title" %}</h5>- <p>{% trans "Ship selected delivery group to the following address:" context "Modal ship delivery group text" %}</p>+ <h5>{% trans "Dispatch delivery group" context "Modal ship delivery group title" %}</h5>+ <p>{% trans "Dispatch this shipment to the following address:" context "Modal ship delivery group text" %}</p>{% include 'dashboard/includes/_address.html' with address=group.order.shipping_address only %}<div class="row">{{ form|materializecss }}diff --git a/templates/dashboard/product/product_class_form.html b/templates/dashboard/product/product_class_form.htmlindex 109798696d..54d73d0353 100644--- a/templates/dashboard/product/product_class_form.html+++ b/templates/dashboard/product/product_class_form.html@@ -80,14 +80,13 @@</div></div><div class="card-action right-align">- <button type="submit" class="btn btn-flat">- {% if product_class.pk %}- {% trans "Update" context "Product class primary action" %}- {% else %}- {% trans "Create" context "Product class primary action" %}- {% endif %}- </button>- </div>+ <button type="submit" class="btn btn-flat">+ {% if product_class.pk %}+ {% trans "Update" context "Product class primary action" %}+ {% else %}+ {% trans "Create" context "Product class primary action" %}+ {% endif %}+ </button></div></form></div>diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.htmlindex 2ea0e9a529..9b5cd408a1 100644--- a/templates/dashboard/product/product_form.html+++ b/templates/dashboard/product/product_form.html@@ -154,7 +154,7 @@<div id="variants" class="card tab-content"><form method="post" action="{% url 'dashboard:variant-bulk-delete' product_pk=product.pk %}" novalidate>{% csrf_token %}- <div class="data-table-actions">+ <div class="data-table-header-action"><a href="{% url 'dashboard:variant-add' product_pk=product.pk %}" class="btn-data-table btn-show-when-unchecked btn-flat">{% trans "Add" context "Product form variants tab table action" %}</a>@@ -181,7 +181,7 @@</div><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table">{% if variants %}<thead><tr>@@ -241,7 +241,7 @@<div id="stock" class="card tab-content"><form method="post" action="{% url 'dashboard:stock-bulk-delete' product_pk=product.pk %}" novalidate>{% csrf_token %}- <div class="data-table-actions">+ <div class="data-table-header-action"><a href="{% url 'dashboard:product-stock-add' product_pk=product.pk %}" class="btn-data-table btn-show-when-unchecked btn-flat">{% trans "Add" context "Product form stock tab table action" %}</a>@@ -271,7 +271,7 @@</div><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table">{% if stock_items %}<thead><tr>diff --git a/templates/dashboard/shipping/method_form.html b/templates/dashboard/shipping/method_form.htmlindex e4fec902de..5d65c6bea5 100644--- a/templates/dashboard/shipping/method_form.html+++ b/templates/dashboard/shipping/method_form.html@@ -95,8 +95,7 @@<button type="submit" class="btn btn-flat">{% trans "Update" context "Shipping method form action" %}</button>{% else %}<a href="{% url 'dashboard:shipping-methods' %}" class="btn btn-flat">{% trans "Cancel" context "Shipping method form action" %}</a>- <button type="submit" class="btn btn-flat">{% trans "Create" context "Shipping method form action" %}</button>- </div>+ <button type="submit" class="btn btn-flat">{% trans "Create" context "Shipping method form action" %}</button>{% endif %}</div></form>diff --git a/templates/dashboard/shipping/method_list.html b/templates/dashboard/shipping/method_list.htmlindex 3f07118bb6..8af3111515 100644--- a/templates/dashboard/shipping/method_list.html+++ b/templates/dashboard/shipping/method_list.html@@ -29,7 +29,7 @@{% if shipping_methods %}<div class="card"><div class="data-table-container">- <table class="bordered hoverable responsive data-table">+ <table class="bordered highlight responsive data-table"><thead><tr><th>{% trans "Name" context "Shipping methods table header" %}</th>