mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 16:08:24 -04:00
Show postage on template page if service can choose postage and
postage set on the template.
This commit is contained in:
@@ -76,6 +76,7 @@ def view_template(service_id, template_id):
|
|||||||
show_recipient=True,
|
show_recipient=True,
|
||||||
page_count=get_page_count_for_letter(template),
|
page_count=get_page_count_for_letter(template),
|
||||||
),
|
),
|
||||||
|
template_postage=template["postage"],
|
||||||
default_letter_contact_block_id=default_letter_contact_block_id,
|
default_letter_contact_block_id=default_letter_contact_block_id,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,13 @@
|
|||||||
Send
|
Send
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="column-whole">
|
||||||
|
{% if current_service.has_permission("choose_postage") and template_postage %}
|
||||||
|
<h2 class="heading-small heading-inline">Postage</h2>: {{ template_postage }} class
|
||||||
|
{% elif (current_service.has_permission("choose_postage") and not template_postage) or not current_service.has_permission("choose_postage") %}
|
||||||
|
<h2 class="heading-small heading-inline">Postage</h2>: {{ current_service.postage }} class
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
|
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
|
||||||
|
|||||||
Reference in New Issue
Block a user