Don’t give postage choice on service and template

We are moving from the postage being set on the service to being set on
the template. Once a service has been migrated to have the new
permission they should no longer be able to set the postage at a service
level, only at the template level.
This commit is contained in:
Chris Hill-Scott
2019-01-15 12:06:56 +00:00
parent eb3459e416
commit 309de074c3
3 changed files with 38 additions and 11 deletions

View File

@@ -234,18 +234,20 @@
)}}
{% endcall %}
{% call settings_row(if_has_permission='letter') %}
{{ text_field('Postage') }}
{% if current_service.has_permission('letter') and not current_service.has_permission('choose_postage') %}
{% call settings_row() %}
{{ text_field('Postage') }}
{% set postage = {'first': 'First class only', 'second': 'Second class only'} %}
{{ text_field(postage[current_service.postage]) }}
{{ edit_field(
'Change',
url_for('.service_set_postage',
service_id=current_service.id),
permissions=['manage_service']
)
}}
{% endcall %}
{{ edit_field(
'Change',
url_for('.service_set_postage',
service_id=current_service.id),
permissions=['manage_service']
)
}}
{% endcall %}
{% endif %}
{% endcall %}
</div>