Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add styles to change password template
weronkae57c12f2b3bc
diff --git a/saleor/static/scss/demo/components/_userprofile.scss b/saleor/static/scss/demo/components/_userprofile.scssindex 8008d654f6..e5f0327f51 100644--- a/saleor/static/scss/demo/components/_userprofile.scss+++ b/saleor/static/scss/demo/components/_userprofile.scss@@ -1,4 +1,14 @@.userprofile {+ &__user {+ h2 {+ margin-right: $global-margin;+ margin-bottom: $global-margin * 2;+ }+ img {+ margin-top: $global-margin / 2;+ }++ }&__nav {background-color: $light-gray;padding: $global-padding 0;@@ -95,3 +105,12 @@}}}++.account-edit {+ &__tittle {+ margin: $global-margin * 2 0;+ }+ .btn {+ margin-top: $global-margin;+ }+}\ No newline at end of filediff --git a/templates/account/password_change.html b/templates/account/password_change.htmlindex b3365af208..de2196cd6b 100644--- a/templates/account/password_change.html+++ b/templates/account/password_change.html@@ -2,33 +2,32 @@{% load i18n %}{% load bootstrap_form from bootstrap3 %}-{% block breadcrumb %}- {{ block.super }}- <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>- <li><a href="{% url 'account_change_password' %}">{% trans "Change Password" %}</a></li>+ <ul class="breadcrumbs list-unstyled">+ <li><a href="/">{% trans "Home" %}</a></li>+ <li><a href="{% url 'profile:details' %}">{% trans "Your account" %}</a></li>+ <li><a href="/">{% trans "Edit" %}</a></li>+ </ul>{% endblock breadcrumb %}{% block content %}-<div class="row">- <div class="col-sm-6">- <div class="panel panel-default">- <div class="panel-body">- <form method="post" novalidate>- {% csrf_token %}- <fieldset>- <legend>{% trans 'Change Password' %}</legend>- {% bootstrap_form form %}- <input type="hidden" name="next" value="{{ next }}" />- </fieldset>- <div class="form-group text-right">- <button class="btn btn-primary">- {% trans "Continue" %}- </button>- </div>- </form>- </div>- </div>- </div>-</div>+ <div class="row account-edit">+ <div class="col-sm-4 offset-sm-4">+ <div class="panel panel-default">+ <div class="panel-body">+ <form method="post" novalidate>+ {% csrf_token %}+ <fieldset>+ <legend class="text-xs-center account-edit__tittle">{% trans 'Change Password' %}</legend>+ {% bootstrap_form form %}+ <input type="hidden" name="next" value="{{ next }}" />+ </fieldset>+ <button class="btn primary">+ {% trans "Save new password" %}+ </button>+ </form>+ </div>+ </div>+ </div>+ </div>{% endblock %}diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex 67d98b61c4..8a0e2b9cef 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -16,11 +16,9 @@{% block content %}<div class="userprofile"><div class="row">- <div class="col-lg-10 offset-lg-1">- <h3>{{ user }}</h3>- <p>- <a href="{% url 'account_change_password' %}">{% trans 'Change your password' %}</a>- </p>+ <div class="col-lg-10 offset-lg-1 userprofile__user">+ <h2 class="float-xs-left">{{ user }}</h2>+ <a href="{% url 'account_change_password' %}"><img src="{% static 'img/icon_edit.svg' %}"></a></div></div><div class="userprofile__nav row">