From 5766a0bf9f3b68fea2c7c683ef6bd24cd3a1a975 Mon Sep 17 00:00:00 2001 From: Neil Martinsen-Burrell Date: Wed, 19 Oct 2022 09:59:04 -0500 Subject: [PATCH] Better form templates --- .../templates/application_organization.html | 22 ++++++++++++++--- .../templates/application_requirements.html | 19 ++++++++------- .../templates/application_sidebar.html | 24 +++++++++---------- 3 files changed, 41 insertions(+), 24 deletions(-) diff --git a/src/registrar/templates/application_organization.html b/src/registrar/templates/application_organization.html index e337674df..3ea8057e1 100644 --- a/src/registrar/templates/application_organization.html +++ b/src/registrar/templates/application_organization.html @@ -10,8 +10,24 @@

What kind of government organization do you represent?

-
{% csrf_token %} -{{ wizard.management_form }} -{{ wizard.form }} + + {{ wizard.management_form }} + {% csrf_token %} +
+

+ Required fields are marked with an asterisk (*). +

+ {% for field in wizard.form %} + + {{ field }} + {% endfor %} +
+ {% if wizard.steps.prev %} + + {% endif %} +
{% endblock %} diff --git a/src/registrar/templates/application_requirements.html b/src/registrar/templates/application_requirements.html index b2e23ad67..1c8909db0 100644 --- a/src/registrar/templates/application_requirements.html +++ b/src/registrar/templates/application_requirements.html @@ -15,12 +15,10 @@
  • You need to have the approval within your organization to make this request
  • -
    {% csrf_token %} -{{ wizard.management_form }} - + + {{ wizard.management_form }} {% csrf_token %}
    - Your profile

    Required fields are marked with an asterisk (*).

    - {% for field in wizard.form %} - - {{ field }} + {% for field in wizard.form %} + + {{ field }} {% endfor %} -
    - + + {% if wizard.steps.prev %} + + {% endif %} +
    {% endblock %} diff --git a/src/registrar/templates/application_sidebar.html b/src/registrar/templates/application_sidebar.html index df6ca75eb..9f2dfffaa 100644 --- a/src/registrar/templates/application_sidebar.html +++ b/src/registrar/templates/application_sidebar.html @@ -1,18 +1,18 @@