mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 17:38:25 -04:00
Add a component for picking the time to send a job
Users need to pick a time in the next 24hrs, or send a file immediately. Rationale for this is a bit lost in time-before-holiday, but generally: ‘Now’ and ‘later’ as the inital choices makes it really clear what this feature is about conceptually. The choice of times is absolute, eg ‘1pm’ not ‘in 3 hours’
This commit is contained in:
0
app/templates/components/radio-select.html
Normal file
0
app/templates/components/radio-select.html
Normal file
@@ -23,6 +23,40 @@
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro radio_select(
|
||||
field,
|
||||
hint=None,
|
||||
wrapping_class='form-group'
|
||||
) %}
|
||||
<div class="{{ wrapping_class }} {% if field.errors %} error{% endif %}">
|
||||
<fieldset>
|
||||
<legend class="form-label">
|
||||
{{ field.label }}
|
||||
{% if field.errors %}
|
||||
<span class="error-message">
|
||||
{{ field.errors[0] }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</legend>
|
||||
<div class="radio-select" data-module="radio-select">
|
||||
<div class="radio-select-column">
|
||||
{% for option in field %}
|
||||
<label class="block-label" for="{{ option.id }}">
|
||||
{{ option }}
|
||||
{{ option.label.text }}
|
||||
</label>
|
||||
{% if loop.first %}
|
||||
</div>
|
||||
<div class="radio-select-column">
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro branding_radios(
|
||||
field,
|
||||
hint=None,
|
||||
|
||||
Reference in New Issue
Block a user