From 1064803a6ef5a7f3059bbed86424a40f05b3a11e Mon Sep 17 00:00:00 2001 From: Rob Cresswell Date: Thu, 26 Jan 2017 08:33:42 +0000 Subject: Improve API Access Credentials template - Match labels to inputs correctly - Remove some redundant classes - Fix indentation/make template readable Change-Id: Ia98602fe3f602b315e4c16102bb593ae77f9be7b Closes-Bug: 1659499 --- .../templates/api_access/_credentials.html | 110 ++++++++++----------- 1 file changed, 52 insertions(+), 58 deletions(-) diff --git a/openstack_dashboard/dashboards/project/api_access/templates/api_access/_credentials.html b/openstack_dashboard/dashboards/project/api_access/templates/api_access/_credentials.html index 56aa49390..3c6381e18 100644 --- a/openstack_dashboard/dashboards/project/api_access/templates/api_access/_credentials.html +++ b/openstack_dashboard/dashboards/project/api_access/templates/api_access/_credentials.html @@ -1,69 +1,63 @@ {% extends "horizon/common/_modal.html" %} {% load i18n %} -{% block modal-header %}{% trans "User Credentials" %}{% endblock %} - {% block modal-body %} -
-
- {% if openrc_creds %} -
-
-
- - -
- {% if "user_domain_name" in openrc_creds %} -
- - -
+ + {% if openrc_creds %} +
+
+ + +
+ {% if "user_domain_name" in openrc_creds %} +
+ + +
+ {% endif %} +
+ + +
+
+ + +
+
+ + +
+
{% endif %} -
- - -
-
- - -
-
- - -
-
-
- {% endif %} - {% if ec2_creds %} -
-
-
- -
-
- -
- {% if ec2_creds.ec2_access_key %} -
- - -
- {% endif %} - {% if ec2_creds.ec2_secret_key %} -
- -
- + {% if ec2_creds %} +
+
+ + +
+
+ + +
+ {% if ec2_creds.ec2_access_key %} +
+ + +
+ {% endif %} + {% if ec2_creds.ec2_secret_key %} +
+ + +
+ {% endif %}
-
{% endif %} -
-
- {% endif %} -
-
+ {% endblock %} {% block modal-footer %} - {% trans "Close" %} + + {% trans "Close" %} + {% endblock %} -- cgit v1.2.1