From 551b4ba8dc03b58d1028e6d935b01b5d1e169fdf Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 28 May 2021 09:48:14 +0100 Subject: [PATCH] Use optional text field for send files setting This follows the convention for if you have an empty setting, it is greyed-out. --- app/templates/views/service-settings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index 567003446..f8b3b00dd 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -104,7 +104,7 @@ {% call settings_row(if_has_permission='email') %} {{ text_field('Send files by email') }} - {{ text_field(current_service.contact_link if current_service.contact_link else "Not set up", truncate=true) }} + {{ optional_text_field(current_service.contact_link, default="Not set up", truncate=true) }} {{ edit_field( 'Manage', url_for('.send_files_by_email_contact_details', service_id=current_service.id),