Display contact link on service settings page

The contact link for the service now gets displayed on the service
settings page if the service has the 'upload_document' permission. There
are no changes to the appearance of the service settings page if a
service does not have the 'upload_document' permission.
This commit is contained in:
Katie Smith
2018-06-05 15:28:22 +01:00
parent 02988c224b
commit 8a559aceb5
2 changed files with 47 additions and 0 deletions

View File

@@ -46,6 +46,20 @@
}}
{% endcall %}
{% if 'upload_document' in current_service.permissions %}
{% call row() %}
{{ text_field('Contact link') }}
{{ text_field(current_service.contact_link) }}
{{ edit_field(
'Change',
url_for('.service_set_contact_link',
service_id=current_service.id),
permissions=['manage_service']
)
}}
{% endcall %}
{% endif %}
{% endcall %}
{% call mapping_table(