Files
notifications-admin/app/templates/components/yes-no.html
T

23 lines
748 B
HTML
Raw Normal View History

{% macro yes_no(field, current_value=None) %}
2016-03-14 09:13:28 +00:00
<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 %}
2016-02-19 15:02:13 +00:00
</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 %} />
2016-02-19 15:02:13 +00:00
Yes
</label>
<label class='block-label'>
<input type='radio' name='{{ field.name }}' value='no' {% if current_value == 'no' %}checked{% endif %} />
2016-02-19 15:02:13 +00:00
No
</label>
</div>
</fieldset>
{% endmacro %}