From a51059e1748e9afdfaebe40ccbf9a18e7dcf806b Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 24 Oct 2017 16:52:14 +0100 Subject: [PATCH] Look for correct text when determining text colour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We used to say ‘None’ if this was empty. Now we say ‘Not set’. The thing that decides whether to make the text grey or not was looking for ‘None’ (the old thing). --- app/templates/views/service-settings.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/views/service-settings.html b/app/templates/views/service-settings.html index c85a3920b..a03640f06 100644 --- a/app/templates/views/service-settings.html +++ b/app/templates/views/service-settings.html @@ -45,7 +45,7 @@ {% call row() %} {{ text_field('Email reply to addresses') }} - {% call field(status='default' if default_reply_to_email_address == "None" else '') %} + {% call field(status='default' if default_reply_to_email_address == "Not set" else '') %} {{ default_reply_to_email_address }} {% if reply_to_email_address_count > 1 %} @@ -197,7 +197,7 @@ {% endcall %} {% call row() %} {{ text_field('Free text message allowance')}} - {{ text_field('{:,}'.format(current_service.free_sms_fragment_limit)) }} + {{ text_field('{:,}'.format(current_service.free_sms_fragment_limit or 0)) }} {{ edit_field('Change', url_for('.set_free_sms_allowance', service_id=current_service.id)) }} {% endcall %} {% call row() %}