mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 09:13:58 -04:00
Merge pull request #3484 from alphagov/add-service-name-hint-text-for-local-authorities
Add service name hint text for local authorities
This commit is contained in:
@@ -80,6 +80,14 @@ def add_service():
|
||||
template_id=example_sms_template['data']['id']
|
||||
))
|
||||
else:
|
||||
if default_organisation_type == 'local':
|
||||
return render_template(
|
||||
'views/add-service-local.html',
|
||||
form=form,
|
||||
heading=heading,
|
||||
default_organisation_type=default_organisation_type,
|
||||
)
|
||||
|
||||
return render_template(
|
||||
'views/add-service.html',
|
||||
form=form,
|
||||
|
||||
@@ -104,6 +104,12 @@ def service_name_change(service_id):
|
||||
session['service_name_change'] = form.name.data
|
||||
return redirect(url_for('.service_name_change_confirm', service_id=service_id))
|
||||
|
||||
if current_service.organisation_type == 'local':
|
||||
return render_template(
|
||||
'views/service-settings/name-local.html',
|
||||
form=form,
|
||||
)
|
||||
|
||||
return render_template(
|
||||
'views/service-settings/name.html',
|
||||
form=form,
|
||||
|
||||
38
app/templates/views/add-service-local.html
Normal file
38
app/templates/views/add-service-local.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "withoutnav_template.html" %}
|
||||
{% from "components/radios.html" import radios %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/page-header.html" import page_header %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
|
||||
{% block per_page_title %}
|
||||
About your service
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-two-thirds">
|
||||
|
||||
{{ page_header('About your service') }}
|
||||
|
||||
<p class="govuk-body">Give your service a name that tells users what your messages are about, as well as who they’re from. For example:</p>
|
||||
<ul class="govuk-list govuk-list--bullet">
|
||||
<li>School admissions – {{ current_user.default_organisation.name }}</li>
|
||||
<li>Electoral services – {{ current_user.default_organisation.name }}</li>
|
||||
<li>Blue Badge – {{ current_user.default_organisation.name }}</li>
|
||||
</ul>
|
||||
<p class="govuk-body">You should only use an acronym if your users are already familiar with it.</p>
|
||||
|
||||
{% call form_wrapper() %}
|
||||
|
||||
{{ textbox(form.name, hint="You can change this later") }}
|
||||
|
||||
{{ page_footer('Add service') }}
|
||||
|
||||
{% endcall %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
45
app/templates/views/service-settings/name-local.html
Normal file
45
app/templates/views/service-settings/name-local.html
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/page-header.html" import page_header %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Change your service name
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{{ page_header(
|
||||
'Change your service name',
|
||||
back_link=url_for('main.service_settings', service_id=current_service.id)
|
||||
) }}
|
||||
|
||||
<p class="govuk-body">Your service name should tell users what the message is about as well as who it’s from. For example:</p>
|
||||
<ul class="govuk-list govuk-list--bullet">
|
||||
<li>School admissions - {{ current_user.default_organisation.name }}</li>
|
||||
<li>Electoral services - {{ current_user.default_organisation.name }}</li>
|
||||
<li>Blue Badge - {{ current_user.default_organisation.name }}</li>
|
||||
</ul>
|
||||
|
||||
<p class="govuk-body">You should only use an acronym if your users are already familiar with it.</p>
|
||||
|
||||
<div class="form-group">
|
||||
{% if current_service.prefix_sms %}
|
||||
<p class="govuk-body">Users will see your service name:</p>
|
||||
<ul class="govuk-list govuk-list--bullet">
|
||||
<li>at the start of every text message</li>
|
||||
<li>as your email sender name</li>
|
||||
</ul>
|
||||
{% else %}
|
||||
<p class="govuk-body">Users will see your service name as your email sender name.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% call form_wrapper() %}
|
||||
{{ textbox(form.name) }}
|
||||
{{ page_footer('Save') }}
|
||||
{% endcall %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user