mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
Don’t show postage to users who can’t choose it
If you can’t choose postage on a per-template basis, you shouldn’t be see the thing that indicates that postage can be changed.
This commit is contained in:
@@ -21,13 +21,12 @@
|
||||
Send
|
||||
</a>
|
||||
</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
|
||||
{% if current_service.has_permission("choose_postage") %}
|
||||
<div class="column-whole" id="postage">
|
||||
<h2 class="heading-small heading-inline">Postage</h2>:
|
||||
{{ template_postage or current_service.postage }} class
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if current_user.has_permissions('send_messages', restrict_admin_usage=True) %}
|
||||
|
||||
Reference in New Issue
Block a user