mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-12 13:20:43 -04:00
Make MOU a multiple choice question not a banner
If we want someone to read something (ie that they need to have the MOU signed), then the best way is to make them interact with it. And if someone doesn’t have the MOU in place, then we need to know to send them a copy. The best way of them telling us this is in this form, rather than sending them to the generic contact form and have them compose a message saying ‘please send me the MOU thanks’, which we haven’t seen anyone actually do.
This commit is contained in:
@@ -350,6 +350,18 @@ class Feedback(Form):
|
||||
|
||||
|
||||
class RequestToGoLiveForm(Form):
|
||||
mou = RadioField(
|
||||
(
|
||||
'Has your organisation accepted the GOV.UK Notify data sharing and financial '
|
||||
'agreement (Memorandum of Understanding)?'
|
||||
),
|
||||
choices=[
|
||||
('yes', 'Yes'),
|
||||
('no', 'No – we’ll send you a copy'),
|
||||
('don’t know', 'I don’t know – we’ll check for you')
|
||||
],
|
||||
validators=[DataRequired()]
|
||||
)
|
||||
channel = RadioField(
|
||||
'What kind of messages will you be sending?',
|
||||
choices=[
|
||||
|
||||
@@ -112,11 +112,13 @@ def service_request_to_go_live(service_id):
|
||||
'subject': 'Request to go live',
|
||||
'message': (
|
||||
'On behalf of {} ({})\n\nExpected usage\n---'
|
||||
'\nMOU in place: {}'
|
||||
'\nChannel: {}\nStart date: {}\nStart volume: {}'
|
||||
'\nPeak volume: {}\nUpload or API: {}'
|
||||
).format(
|
||||
current_service['name'],
|
||||
url_for('main.service_dashboard', service_id=current_service['id'], _external=True),
|
||||
form.mou.data,
|
||||
form.channel.data,
|
||||
form.start_date.data,
|
||||
form.start_volume.data,
|
||||
|
||||
@@ -12,19 +12,10 @@
|
||||
|
||||
<h1 class="heading-large">Request to go live</h1>
|
||||
|
||||
{% call banner_wrapper(type='warning') %}
|
||||
<h2 class="heading-medium">You must accept the GOV.UK Notify data sharing and financial agreement (Memorandum of Understanding) before we can process data for you.</h2>
|
||||
|
||||
<p>
|
||||
<a href="{{ url_for('main.feedback') }}">Contact the Notify team</a> to get a copy of the agreement or to find out if your organisation has already accepted it.
|
||||
</p>
|
||||
{% endcall %}
|
||||
|
||||
<p>
|
||||
Before you request to go live, make sure you’ve:
|
||||
</p>
|
||||
<ul class="list list-bullet bottom-gutter">
|
||||
<li>accepted our data sharing and financial agreement</li>
|
||||
<li>read our <a href="{{ url_for('.terms') }}">terms of use</a></li>
|
||||
<li>added <a href="{{ url_for('main.manage_users', service_id=current_service.id) }}">team members</a> to your account</li>
|
||||
<li>
|
||||
@@ -40,10 +31,11 @@
|
||||
</ul>
|
||||
|
||||
<form method="post">
|
||||
{{ radios(form.mou) }}
|
||||
{{ radios(form.channel) }}
|
||||
{{ textbox(form.start_date, width='1-1') }}
|
||||
{{ textbox(form.start_volume, width='1-1', hint='For example, ‘1000 a month’.') }}
|
||||
{{ textbox(form.peak_volume, width='1-1', hint='For example, ‘Messages will increase to 20,000 a month in January’.') }}
|
||||
{{ textbox(form.start_volume, width='1-1') }}
|
||||
{{ textbox(form.peak_volume, width='1-1') }}
|
||||
{{ radios(form.upload_or_api) }}
|
||||
|
||||
<p>
|
||||
|
||||
@@ -314,6 +314,7 @@ def test_should_redirect_after_request_to_go_live(
|
||||
response = client.post(
|
||||
url_for('main.service_request_to_go_live', service_id='6ce466d0-fd6a-11e5-82f5-e0accb9d11a6'),
|
||||
data={
|
||||
'mou': 'yes',
|
||||
'channel': 'emails',
|
||||
'start_date': '01/01/2017',
|
||||
'start_volume': '100,000',
|
||||
@@ -376,6 +377,7 @@ def test_log_error_on_request_to_go_live(
|
||||
resp = client.post(
|
||||
url_for('main.service_request_to_go_live', service_id='6ce466d0-fd6a-11e5-82f5-e0accb9d11a6'),
|
||||
data={
|
||||
'mou': 'yes',
|
||||
'channel': 'emails',
|
||||
'start_date': 'start_date',
|
||||
'start_volume': 'start_volume',
|
||||
|
||||
Reference in New Issue
Block a user