diff --git a/app/main/forms.py b/app/main/forms.py index 673bd44c1..e3e4b749b 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -1294,14 +1294,13 @@ class BaseTemplateForm(StripWhitespaceForm): NoCommasInPlaceHolders() ] ) - process_type = RadioField( + process_type = GovukRadiosField( "Use priority queue?", choices=[ ('priority', 'Yes'), ('normal', 'No'), ], thing='yes or no', - validators=[DataRequired()], default='normal' ) diff --git a/app/templates/views/edit-email-template.html b/app/templates/views/edit-email-template.html index 1f2c569d1..8e87c32d3 100644 --- a/app/templates/views/edit-email-template.html +++ b/app/templates/views/edit-email-template.html @@ -2,7 +2,6 @@ {% from "components/textbox.html" import textbox %} {% from "components/page-header.html" import page_header %} {% from "components/page-footer.html" import sticky_page_footer %} -{% from "components/radios.html" import radios %} {% from "components/form.html" import form_wrapper %} {% block service_page_title %} @@ -26,7 +25,7 @@ {{ textbox(form.subject, width='1-1', highlight_placeholders=True, rows=2) }} {{ textbox(form.template_content, highlight_placeholders=True, width='1-1', rows=8) }} {% if current_user.platform_admin %} - {{ radios(form.process_type) }} + {{ form.process_type }} {% endif %} {{ sticky_page_footer( 'Save' diff --git a/app/templates/views/edit-sms-template.html b/app/templates/views/edit-sms-template.html index faf3d25d5..7a83823b1 100644 --- a/app/templates/views/edit-sms-template.html +++ b/app/templates/views/edit-sms-template.html @@ -2,7 +2,6 @@ {% from "components/textbox.html" import textbox %} {% from "components/page-header.html" import page_header %} {% from "components/page-footer.html" import sticky_page_footer %} -{% from "components/radios.html" import radios %} {% from "components/form.html" import form_wrapper %} {% block service_page_title %} @@ -27,7 +26,7 @@