Skip to content

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

Add styles to password change tab

weronka32ef93b55fcd
diff --git a/saleor/static/scss/storefront/components/_userprofile.scss b/saleor/static/scss/storefront/components/_userprofile.scss
index 6b79ceceea..4796ad7c11 100644
--- a/saleor/static/scss/storefront/components/_userprofile.scss
+++ b/saleor/static/scss/storefront/components/_userprofile.scss
@@ -33,8 +33,23 @@
}
}
}
- &__address-empty {
- margin: $global-margin 0 $global-margin * 2;
+ &__orders {
+ small {
+ text-decoration: underline;
+ color: $body-color;
+ }
+ &__row {
+ border-bottom: 1px solid $light-gray;
+ padding: $global-padding 0;
+ }
+ }
+ &__password {
+ h1 {
+ margin-bottom: $global-margin * 2;
+ }
+ .btn {
+ margin-top: $global-margin;
+ }
}
&__addresses {
display: table;
@@ -54,33 +69,6 @@
}
}
}
- .primary {
- margin-top: $global-margin;
- }
- &__orders {
- small {
- text-decoration: underline;
- color: $body-color;
- }
- &__row {
- border-bottom: 1px solid $light-gray;
- padding: $global-padding 0;
- }
- }
- &__address-edit {
- &__form {
- margin-bottom: $global-margin * 2;
- }
- }
-}
-
-.account-edit {
- &__tittle {
- margin: $global-margin * 2 0;
- }
- .btn {
- margin-top: $global-margin;
- }
}
.modal-address-delete {
diff --git a/templates/userprofile/details.html b/templates/userprofile/details.html
index 8c8db56414..c5b72653c1 100644
--- a/templates/userprofile/details.html
+++ b/templates/userprofile/details.html
@@ -23,7 +23,7 @@
<a class="nav-link active" data-toggle="tab" href="#orders" role="tab"><h3>{% trans "Orders" %}</h3></a>
</li>
<li class="nav-item">
- <a class="nav-link " data-toggle="tab" href="#account" role="tab"><h3>{% trans "Account & Password" %}</h3></a>
+ <a class="nav-link " data-toggle="tab" href="#password" role="tab"><h3>{% trans "Change password" %}</h3></a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#addresses" role="tab"><h3>{% trans "Addresses" %}</h3></a>
@@ -58,13 +58,16 @@
{% endfor %}
</div>
</div>
- <div class="tab-pane" id="account" role="tabpanel">
- <form action="" method="post">
- {% csrf_token %}
- {% bootstrap_form change_password_form %}
- <input type="submit" class="btn primary" value="Change password">
- </form>
-
+ <div class="tab-pane" id="password" role="tabpanel">
+ <div class="row ">
+ <div class="col-md-8 offset-md-2 col-lg-6 offset-lg-3 userprofile__password">
+ <form action="" method="post">
+ {% csrf_token %}
+ {% bootstrap_form change_password_form %}
+ <input type="submit" class="btn primary" value="Change password">
+ </form>
+ </div>
+ </div>
</div>
<div class="tab-pane" id="addresses" role="tabpanel">
<div class="card-deck-wrapper userprofile__addresses">