Hide Postage setting when letters are not enabled for service

We don't show the sender addresses and letter branding on the settings page
if a service doesn't have letters enabled, so we should also hide the
postage for services that can't send letters.

(Postage can only be seen by Platform Admin users at the moment, but this will
change later).
This commit is contained in:
Katie Smith
2018-09-20 15:43:22 +01:00
parent cf553af4bf
commit fee47aa348
2 changed files with 20 additions and 2 deletions

View File

@@ -236,7 +236,7 @@
{% endcall %}
{% if current_user.platform_admin %}
{% call row() %}
{% call settings_row(if_has_permission='letter') %}
{{ text_field('Postage') }}
{% set postage = {'first': 'First class only', 'second': 'Second class only'} %}
{{ text_field(postage[current_service.postage]) }}