mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Update app to the latest notifications_utils.
This commit is contained in:
@@ -237,7 +237,6 @@ def check_messages(service_id, template_type, upload_id):
|
|||||||
|
|
||||||
session['upload_data']['notification_count'] = len(list(recipients.rows))
|
session['upload_data']['notification_count'] = len(list(recipients.rows))
|
||||||
session['upload_data']['valid'] = not recipients.has_errors
|
session['upload_data']['valid'] = not recipients.has_errors
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
'views/check.html',
|
'views/check.html',
|
||||||
recipients=recipients,
|
recipients=recipients,
|
||||||
|
|||||||
@@ -109,19 +109,19 @@
|
|||||||
) %}
|
) %}
|
||||||
{{ index_field(item.index + 2) }}
|
{{ index_field(item.index + 2) }}
|
||||||
{% for column in recipients.column_headers %}
|
{% for column in recipients.column_headers %}
|
||||||
{% if item[column].error %}
|
{% if item['columns'][column].error %}
|
||||||
{% call field() %}
|
{% call field() %}
|
||||||
<span class="table-field-error">
|
<span class="table-field-error">
|
||||||
<span class="table-field-error-label">{{ item[column].error }}</span>
|
<span class="table-field-error-label">{{ item['columns'][column].error }}</span>
|
||||||
{{ item[column].data if item[column].data != None }}
|
{{ item['columns'][column].data if item['columns'][column].data != None }}
|
||||||
</span>
|
</span>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
{% elif item[column].ignore %}
|
{% elif item['columns'][column].ignore %}
|
||||||
{% call field(status='default') %}
|
{% call field(status='default') %}
|
||||||
{{ item[column].data if item[column].data != None }}
|
{{ item['columns'][column].data if item['columns'][column].data != None }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ text_field(item[column].data) }}
|
{{ text_field(item['columns'][column].data) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ py-gfm==0.1.2
|
|||||||
|
|
||||||
git+https://github.com/alphagov/notifications-python-client.git@0.5.0#egg=notifications-python-client==0.5.0
|
git+https://github.com/alphagov/notifications-python-client.git@0.5.0#egg=notifications-python-client==0.5.0
|
||||||
|
|
||||||
git+https://github.com/alphagov/notifications-utils.git@4.3.0#egg=notifications-utils==4.3.0
|
git+https://github.com/alphagov/notifications-utils.git@5.1.0#egg=notifications-utils==5.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user