From 4e9b5c2daadcaecd48554e3298983961e648e26e Mon Sep 17 00:00:00 2001 From: Jiri Tomasek Date: Wed, 19 Nov 2014 17:38:24 +0100 Subject: [PATCH] Modal fixes - 2 columns, padding, header, membership Adds padding to tab-content which takes care of proper spacing between tabs and tab-content. refactors tabs styling - match modal and non-modal tabs Changes modal header h3 margin to save space. Cleans up Membership widget styling Unifies 2 column layout in modals using bootstrap columns Changes create and update image modal template as an example. The rest of the views is changed in subsequent patch Closes-Bug: #1354505 Change-Id: Idca2a2dbdea8cdacc37061faa52004b1020b1bf0 --- horizon/templates/horizon/_nav_list.html | 2 +- .../horizon/client_side/_membership.html | 8 +- .../templates/horizon/client_side/_modal.html | 2 +- horizon/templates/horizon/common/_modal.html | 4 +- .../templates/horizon/common/_modal_form.html | 14 +- .../templates/horizon/common/_workflow.html | 4 +- .../horizon/common/_workflow_step.html | 20 +-- .../common/_workflow_step_update_members.html | 49 ++--- horizon/test/tests/templatetags.py | 2 +- .../templates/images/images/_create.html | 41 ++--- .../templates/images/images/_update.html | 13 +- .../static/dashboard/scss/horizon.scss | 169 +++++++----------- .../dashboard/scss/horizon_workflow.scss | 22 +-- 13 files changed, 145 insertions(+), 205 deletions(-) diff --git a/horizon/templates/horizon/_nav_list.html b/horizon/templates/horizon/_nav_list.html index f300be27a9..25e195130f 100644 --- a/horizon/templates/horizon/_nav_list.html +++ b/horizon/templates/horizon/_nav_list.html @@ -1,7 +1,7 @@ {% load horizon i18n %}
-
{% endif %} {% block modal-body %} -
-
+
+
+
{% include "horizon/common/_form_fields.html" %} -
-
-
- {% block modal-body-right %}{% endblock %} +
+
+
+ {% block modal-body-right %}{% endblock %} +
{% endblock %} diff --git a/horizon/templates/horizon/common/_workflow.html b/horizon/templates/horizon/common/_workflow.html index b64b7e2d43..16a17244d3 100644 --- a/horizon/templates/horizon/common/_workflow.html +++ b/horizon/templates/horizon/common/_workflow.html @@ -8,12 +8,12 @@