mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Error messages were added to the yes/no fields on the invite user page in:
4c323a9a99
This commit fixes the margins and padding on these fields so they look
consistent with how we do validation errors elsewhere.
t
23 lines
748 B
HTML
23 lines
748 B
HTML
{% macro yes_no(field, current_value=None) %}
|
|
<fieldset class='yes-no'>
|
|
<legend class='yes-no-label{% if field.errors %} error{% endif %}'>
|
|
{{ field.label }}
|
|
{% if field.errors %}
|
|
<span class="error-message">
|
|
{{ field.errors[0] }}
|
|
</span>
|
|
{% endif %}
|
|
</legend>
|
|
<div class='yes-no-fields inline'>
|
|
<label class='block-label'>
|
|
<input type='radio' name='{{ field.name }}' value='yes' {% if current_value == 'yes' %}checked{% endif %} />
|
|
Yes
|
|
</label>
|
|
<label class='block-label'>
|
|
<input type='radio' name='{{ field.name }}' value='no' {% if current_value == 'no' %}checked{% endif %} />
|
|
No
|
|
</label>
|
|
</div>
|
|
</fieldset>
|
|
{% endmacro %}
|