From 442698e7f636d975a655af4923a574b14e3d2096 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Tue, 20 Mar 2012 18:09:56 +0000 Subject: [PATCH] Refactor somewhat. - Legacy-Id: 4144 --- ietf/templates/wgcharter/change_state.html | 42 ++++++++++------------ 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/ietf/templates/wgcharter/change_state.html b/ietf/templates/wgcharter/change_state.html index f6442d0b2..d90569e8a 100644 --- a/ietf/templates/wgcharter/change_state.html +++ b/ietf/templates/wgcharter/change_state.html @@ -15,7 +15,6 @@ form.change-state .actions { text-align: right; padding-top: 10px; } - {% endblock %} {% block content %} @@ -28,24 +27,26 @@ form.change-state .actions { {% for field in form.visible_fields %} {% if field.name == "initial_time" %} - {% if option == "recharter" %} - {{ field.label_tag }}: - {{ field }} - {% if field.help_text %}
{{ field.help_text }}
{% endif %} - {% else %} - {% if option == "initcharter" %} - {{ field.label_tag }}: - {{ field }} - {% if field.help_text %}
{{ field.help_text }}
{% endif %} - {% endif %} - {% endif %} + {% if option == "recharter" %} + {{ field.label_tag }}: + {{ field }} + {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% else %} - {{ field.label_tag }}: - {{ field }} - {% if field.help_text %}
{{ field.help_text }}
{% endif %} + {% if option == "initcharter" %} + {{ field.label_tag }}: + {{ field }} + {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% endif %} + {% endif %} + + {% else %} + {{ field.label_tag }}: + {{ field }} + {% if field.help_text %}
{{ field.help_text }}
{% endif %} + {% endif %} + {% if field.name == "charter_state" and field.errors == "warning" %} - + {% else %} {{ field.errors }} {% endif %} @@ -57,7 +58,7 @@ form.change-state .actions { {% if option %} {% else %} - Back + Back {% endif %} @@ -80,12 +81,7 @@ form.change-state .actions { {% block content_end %} {% endblock %}