mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 14:03:52 -04:00
Change the selectField on the edit template form to a radio field.
It's more stylish
This commit is contained in:
@@ -270,9 +270,19 @@ class SMSTemplateForm(Form):
|
||||
NoCommasInPlaceHolders()
|
||||
]
|
||||
)
|
||||
process_type = SelectField(u'Use priority queue?', choices=[('normal', 'no'),
|
||||
('priority', 'yes')],
|
||||
default='normal')
|
||||
# process_type = SelectField(u'Use priority queue?', choices=[('normal', 'no'),
|
||||
# ('priority', 'yes')],
|
||||
# default='normal')
|
||||
|
||||
process_type = RadioField(
|
||||
'Use priority queue?',
|
||||
choices=[
|
||||
('priority', 'Yes'),
|
||||
('normal', 'No'),
|
||||
],
|
||||
validators=[DataRequired()],
|
||||
default='normal'
|
||||
)
|
||||
|
||||
|
||||
class EmailTemplateForm(SMSTemplateForm):
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/radios.html" import radios %}
|
||||
|
||||
{% block page_title %}
|
||||
{{ heading_action }} email template – GOV.UK Notify
|
||||
@@ -21,7 +22,7 @@
|
||||
<div class="column-three-quarters">
|
||||
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=8) }}
|
||||
{% if current_user.has_permissions([], admin_override=True) %}
|
||||
{{ textbox(form.process_type, width='1-1') }}
|
||||
{{ radios(form.process_type) }}
|
||||
{% endif %}
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/radios.html" import radios %}
|
||||
|
||||
{% block page_title %}
|
||||
{{ heading_action }} text message template – GOV.UK Notify
|
||||
@@ -20,7 +21,7 @@
|
||||
<div class="column-two-thirds">
|
||||
{{ textbox(form.template_content, highlight_tags=True, width='1-1', rows=5) }}
|
||||
{% if current_user.has_permissions([], admin_override=True) %}
|
||||
{{ textbox(form.process_type, width='1-1') }}
|
||||
{{ radios(form.process_type) }}
|
||||
{% endif %}
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
|
||||
Reference in New Issue
Block a user