mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 20:18:24 -04:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user