Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve user profile forms styles
Paweł Kowalewskibdce46582942
diff --git a/saleor/userprofile/templates/userprofile/address-delete.html b/saleor/userprofile/templates/userprofile/address-delete.htmlindex 2cfb8ac441..ccb21f1f95 100644--- a/saleor/userprofile/templates/userprofile/address-delete.html+++ b/saleor/userprofile/templates/userprofile/address-delete.html@@ -11,7 +11,20 @@{% block content %}<h2>{% trans "Are you sure you want to delete the following address?" %}</h2>- <address>{% include "userprofile/snippets/address-details.html" with address=object.address %}</address>++ <div class="row">+ <div class="col-sm-6">+ <div class="panel panel-default">+ <div class="panel-heading">+ {{ object }}+ </div>+ <div class="panel-body">+ <address>{% include "userprofile/snippets/address-details.html" with address=object.address %}</address>+ </div>+ </div>+ </div>+ </div>+<form action="." method="post">{% csrf_token %}<button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>diff --git a/saleor/userprofile/templates/userprofile/address-edit.html b/saleor/userprofile/templates/userprofile/address-edit.htmlindex f855c600b4..909079b2ac 100644--- a/saleor/userprofile/templates/userprofile/address-edit.html+++ b/saleor/userprofile/templates/userprofile/address-edit.html@@ -1,6 +1,6 @@{% extends "base.html" %}-{% load as_horizontal_form from bootstrap %}+{% load as_vertical_form from bootstrap %}{% load i18n %}{% block title %}{% trans "Edit Address" %} — {{ block.super }}{% endblock %}@@ -16,18 +16,24 @@{% endblock breadcrumb %}{% block content %}- <form class="form-horizontal" action="." method="post">- {% csrf_token %}- <fieldset>- <legend>Address</legend>- {{ address_book_form|as_horizontal_form }}- {{ address_form|as_horizontal_form }}- </fieldset>- <div class="form-group">- <div class="col-sm-10 col-sm-offset-2">- <button type="submit" class="btn btn-primary">Save</button>- <a href="{% url 'profile:details' %}" class="btn btn-link">Cancel</a>+<div class="row">+ <div class="col-sm-6">+ <div class="panel panel-default">+ <div class="panel-body">+ <form action="." method="post">+ {% csrf_token %}+ <fieldset>+ <legend>Address</legend>+ {{ address_book_form|as_vertical_form }}+ {{ address_form|as_vertical_form }}+ </fieldset>+ <div class="form-group">+ <button type="submit" class="btn btn-primary">Save</button>+ <a href="{% url 'profile:details' %}" class="btn btn-link">Cancel</a>+ </div>+ </form></div></div>- </form>+ </div>+</div>{% endblock content %}