From b1f56856d6293a8270395d84dd751ab6f5b1d5f9 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Fri, 14 Nov 2014 16:16:31 +0100 Subject: [PATCH] federation management block added to account management page. Code indented Closes #5942 --- .../themes/django-montpellier/style.css | 16 ++++ idp/templates/idp/account_management.html | 79 ++++++++++++------- 2 files changed, 66 insertions(+), 29 deletions(-) diff --git a/idp/static/themes/django-montpellier/style.css b/idp/static/themes/django-montpellier/style.css index 030b244..e6d90ca 100644 --- a/idp/static/themes/django-montpellier/style.css +++ b/idp/static/themes/django-montpellier/style.css @@ -907,6 +907,22 @@ ul.account-management li { margin: 0 1em; } +#federation-management li { + list-style-type: none; + margin: 5px 0; +} + +#federation-management li span.name { + float: left; + width: 20em; +} + +#federation-management li button { + background: #f68423; + border: none; + color: #fff; +} + /* bits of responsive design */ @media screen and (max-width: 760px) { diff --git a/idp/templates/idp/account_management.html b/idp/templates/idp/account_management.html index f0649cc..047ac42 100644 --- a/idp/templates/idp/account_management.html +++ b/idp/templates/idp/account_management.html @@ -6,37 +6,58 @@ {% endblock %} {% block content %} -
-

{% trans "Profile" %}

-
-{% if profile %} -
-{% for key, values in profile %} -
{{ key|capfirst }}
-
{% if values|length == 1 %}{{ values.0 }}{% else %} -
    - {% for value in values %} -
  • {{ value }}
  • - {% endfor %} -
-{% endif %} -
-{% endfor %} -
-{% endif %} +
+
+

{% trans "Profile" %}

+
+ {% if profile %} +
+ {% for key, values in profile %} +
{{ key|capfirst }}
+
{% if values|length == 1 %}{{ values.0 }}{% else %} +
    + {% for value in values %} +
  • {{ value }}
  • + {% endfor %} +
+ {% endif %} +
+ {% endfor %} +
+ {% endif %} +
+
-
-
{% endblock %}