Add a non-GOV.UK banner option for email branding

Added extra radio button for 'org_banner' option
Updated service setting template to display appropriate text when option is selected
Updated tests to also accomodate new radio option
This commit is contained in:
chrisw
2017-09-19 13:32:42 +01:00
parent edaa7b85b0
commit 4312789b60
3 changed files with 8 additions and 1 deletions

View File

@@ -511,7 +511,8 @@ class ServiceBrandingOrg(Form):
choices=[
('govuk', 'GOV.UK only'),
('both', 'GOV.UK and organisation'),
('org', 'Organisation only')
('org', 'Organisation only'),
('org_banner', 'Organisation banner')
],
validators=[
DataRequired()

View File

@@ -187,6 +187,8 @@
GOV.UK and {{ organisation.name if organisation else None }}
{% elif current_service.branding == 'org' %}
Only {{ organisation.name if organisation else None }}
{% elif current_service.branding == 'org_banner' %}
Only {{ organisation.name if organisation else None }} banner
{% endif %}
{% endcall %}
{{ edit_field('Change', url_for('.service_set_branding_and_org', service_id=current_service.id)) }}