mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Added display of daily limit and remaining amount after csv upload
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{% macro navigation_service_name(service) %}
|
||||
<div class="navigation-service-name govuk-!-font-weight-bold">
|
||||
{{ service.name }}
|
||||
<p class="govuk-body"> Daily Message Limit: {{ service.message_limit }}</p>
|
||||
{% if not service.active %}
|
||||
<span class="navigation-service-type navigation-service-type--suspended">Suspended</span>
|
||||
{% endif %}
|
||||
|
||||
@@ -93,5 +93,10 @@
|
||||
Only showing the first {{ count_of_displayed_recipients }} rows
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
<h2 class="heading-medium">Daily messages remaining: </h2>
|
||||
<p class="govuk-body">{{ remaining_messages }}</p>
|
||||
<h2 class="heading-medium">Remaining messages if sent: </h2>
|
||||
<p class="govuk-body">{{ remaining_messages - count_of_recipients }}</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -56,4 +56,11 @@
|
||||
<h2 class="heading-medium">Your file will populate this template ({{ template.name }})</h2>
|
||||
{{ template|string }}
|
||||
|
||||
<div>
|
||||
<h2 class="heading-medium">Daily message limit for this service:</h2>
|
||||
<p class="govuk-body">{{ current_service.name }} - {{ current_service.message_limit }}</p>
|
||||
<h2 class="heading-medium">Daily remaining messages for this service:</h2>
|
||||
<p class="govuk-body">{{ remaining_messages }}</p>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user