mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 20:49:41 +02:00
Better form templates
This commit is contained in:
parent
c56914f2e1
commit
5766a0bf9f
3 changed files with 41 additions and 24 deletions
|
@ -10,8 +10,24 @@
|
||||||
|
|
||||||
<h2> What kind of government organization do you represent?</h2>
|
<h2> What kind of government organization do you represent?</h2>
|
||||||
|
|
||||||
<form action="" method="post">{% csrf_token %}
|
<form class="usa-form usa-form--large" method="post">
|
||||||
{{ wizard.management_form }}
|
{{ wizard.management_form }}
|
||||||
{{ wizard.form }}
|
{% csrf_token %}
|
||||||
|
<fieldset class="usa-fieldset">
|
||||||
|
<p>
|
||||||
|
Required fields are marked with an asterisk (<abbr
|
||||||
|
title="required"
|
||||||
|
class="usa-hint usa-hint--required"
|
||||||
|
>*</abbr>).
|
||||||
|
</p>
|
||||||
|
{% for field in wizard.form %}
|
||||||
|
<label class="usa-label" for="id_{{ field.name }}">{{ field.label }}</label>
|
||||||
|
{{ field }}
|
||||||
|
{% endfor %}
|
||||||
|
</fieldset>
|
||||||
|
{% if wizard.steps.prev %}
|
||||||
|
<button name="wizard_goto_step" type="submit" class="usa-button usa-button--base" value="{{ wizard.steps.prev }}">Previous</button>
|
||||||
|
{% endif %}
|
||||||
|
<button name="wizard_goto_step" type="submit" class="usa-button" value="{{ wizard.steps.prev }}">Next</button>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -15,12 +15,10 @@
|
||||||
<li> You need to have the approval within your organization to make this request</li>
|
<li> You need to have the approval within your organization to make this request</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<form action="" method="post">{% csrf_token %}
|
<form class="usa-form usa-form--large" method="post">
|
||||||
{{ wizard.management_form }}
|
{{ wizard.management_form }}
|
||||||
<form class="usa-form usa-form--large" method="post" enctype="multipart/form-data">
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<fieldset class="usa-fieldset">
|
<fieldset class="usa-fieldset">
|
||||||
<legend class="usa-legend usa-legend--large">Your profile</legend>
|
|
||||||
<p>
|
<p>
|
||||||
Required fields are marked with an asterisk (<abbr
|
Required fields are marked with an asterisk (<abbr
|
||||||
title="required"
|
title="required"
|
||||||
|
@ -28,11 +26,14 @@
|
||||||
>*</abbr
|
>*</abbr
|
||||||
>).
|
>).
|
||||||
</p>
|
</p>
|
||||||
{% for field in wizard.form %}
|
{% for field in wizard.form %}
|
||||||
<label class="usa-label" for="id_{{ field.name }}">{{ field.label }}</label>
|
<label class="usa-label" for="id_{{ field.name }}">{{ field.label }}</label>
|
||||||
{{ field }}
|
{{ field }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<button type="submit" class="usa-button usa-button--big">Save Changes</button>
|
{% if wizard.steps.prev %}
|
||||||
|
<button name="wizard_goto_step" type="submit" class="usa-button usa-button--base" value="{{ wizard.steps.prev }}">Previous</button>
|
||||||
|
{% endif %}
|
||||||
|
<button name="wizard_goto_step" type="submit" class="usa-button" value="{{ wizard.steps.prev }}">Next</button>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<div class="tablet:grid-col-4 margin-bottom-4 tablet:margin-bottom-0">
|
<div class="tablet:grid-col-4 margin-bottom-4 tablet:margin-bottom-0">
|
||||||
<nav aria-label="Form steps,">
|
<nav aria-label="Form steps,">
|
||||||
<ul class="usa-sidenav">
|
<ul class="usa-sidenav">
|
||||||
{% for this_step in wizard.steps.all %}
|
{% for this_step in wizard.steps.all %}
|
||||||
<li class="usa-sidenav__item">
|
<li class="usa-sidenav__item">
|
||||||
{% if forloop.counter <= wizard.step1 %}
|
{% if forloop.counter <= wizard.steps.step1 %}
|
||||||
<a href="{% url wizard.url_name step=this_step %}"
|
<a href="{% url wizard.url_name step=this_step %}"
|
||||||
{% if this_step == wizard.steps.current %}class="usa-current"{% endif%}>
|
{% if this_step == wizard.steps.current %}class="usa-current"{% endif%}>
|
||||||
{{ this_step }} {{ forloop.counter }} {{ wizard.step1 }}
|
{{ this_step }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ this_step }} {{ forloop.counter }} {{ wizard.step1 }}
|
{{ this_step }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue