mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-25 21:00:47 -05:00
The visual appearance of radio and checkbox form inputs changed in GOV.UK Elements here: https://github.com/alphagov/govuk_elements/pull/296 This was subsequently reimplemented with different markup and no Javascript here: https://github.com/alphagov/govuk_elements/pull/406 This has meant making the following changes to our app: - changing the markup in our radio/checkbox macros to match the example markup given by GOV.UK Elements - removing the previous Javascript file because it’s no longer needed to make the radios appear visual selected - making the buttons on the scheduled job picker look like links, because the grey button style looked weird with the new radio buttons
23 lines
464 B
HTML
23 lines
464 B
HTML
{% macro checkbox(
|
|
field,
|
|
hint=False,
|
|
width='2-3'
|
|
) %}
|
|
<div class="multiple-choice">
|
|
<input
|
|
id="{{ field.id }}" name="{{ field.name }}" type="checkbox" value="{{ field.data }}"
|
|
{% if field.checked %}
|
|
checked
|
|
{% endif %}
|
|
>
|
|
<label for="{{ field.id }}">
|
|
{{ field.label.text }}
|
|
{% if hint %}
|
|
<div class="hint">
|
|
{{ hint }}
|
|
</div>
|
|
{% endif %}
|
|
</label>
|
|
</div>
|
|
{% endmacro %}
|