Skip to content

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

Fix order list

Krzysztof Białogłowicz3eb1429801a3
diff --git a/saleor/static/scss/storefront/components/_userprofile.scss b/saleor/static/scss/storefront/components/_userprofile.scss
index 03a9e1d546..88b7d25f7a 100644
--- a/saleor/static/scss/storefront/components/_userprofile.scss
+++ b/saleor/static/scss/storefront/components/_userprofile.scss
@@ -63,8 +63,26 @@
color: $body-color;
}
&__row {
- border-bottom: 1px solid $light-gray;
+ border-bottom: 1px solid $gray;
padding: $global-padding 0;
+ font-size: 0.9rem;
+ a {
+ color: $body-color;
+ text-decoration: underline;
+ padding-right: $global-padding / 2;
+ &:hover {
+ text-decoration: none;
+ }
+ }
+ }
+ &-header {
+ border-bottom: 1px solid $gray;
+ padding-bottom: $global-padding/2;
+ h3 {
+ color: $skull-gray;
+ font-size: 0.8rem;
+ text-transform: uppercase;
+ }
}
}
&__password {
diff --git a/templates/userprofile/details.html b/templates/userprofile/details.html
index 32df6d7b3c..1fe428ec0d 100644
--- a/templates/userprofile/details.html
+++ b/templates/userprofile/details.html
@@ -34,24 +34,33 @@
<div class="tab-content col-lg-10 offset-lg-1">
<div class="tab-pane active" id="orders" role="tabpanel">
<div id="accordion" role="tablist" aria-multiselectable="true">
+ <div class="userprofile__orders-header">
+ <div class="row">
+ <div class="col-md-2 col-3"><h3>{% trans "Order" %}</h3></div>
+ <div class="col-md-3 hidden-sm-down"><h3>{% trans "Date" %}</h3></div>
+ <div class="col-md-2 col-3"><h3 class="float-md-right">{% trans "Summary" %}</h3></div>
+ <div class="col-md-4 hidden-sm-down"><h3>{% trans "Status" %}</h3></div>
+ <div class="col-md-1 col-3"></div>
+ </div>
+ </div>
{% for order in orders %}
<div class="userprofile__orders">
<div class="userprofile__orders__row">
<div class="row">
- <div class="col-md-2 col-5">
+ <div class="col-md-2 col-3">
{{ order }}
</div>
- <div class="col-md-4 col-6">
+ <div class="col-md-3 hidden-sm-down">
{{ order.created }}
</div>
- <div class="col-md-1 col-5">
+ <div class="col-md-2 col-3">
<span class="float-md-right">{% gross order.get_total %}</span>
</div>
- <div class="col-md-2 col-5 offset-md-1">
+ <div class="col-md-4 hidden-sm-down">
{% render_status order.status order.get_status_display %}
</div>
- <div class="col-md-2 col-2">
- <a href="{{ order.get_absolute_url }}"><small class="float-right">{% trans "Details" %}</small></a>
+ <div class="col-md-1 col-3">
+ <a href="{{ order.get_absolute_url }}" class="float-right">{% trans "Details" %}</a>
</div>
</div>
</div>