mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-12 13:20:43 -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']['valid'] = not recipients.has_errors
|
||||
|
||||
return render_template(
|
||||
'views/check.html',
|
||||
recipients=recipients,
|
||||
|
||||
@@ -109,19 +109,19 @@
|
||||
) %}
|
||||
{{ index_field(item.index + 2) }}
|
||||
{% for column in recipients.column_headers %}
|
||||
{% if item[column].error %}
|
||||
{% if item['columns'][column].error %}
|
||||
{% call field() %}
|
||||
<span class="table-field-error">
|
||||
<span class="table-field-error-label">{{ item[column].error }}</span>
|
||||
{{ item[column].data if item[column].data != None }}
|
||||
<span class="table-field-error-label">{{ item['columns'][column].error }}</span>
|
||||
{{ item['columns'][column].data if item['columns'][column].data != None }}
|
||||
</span>
|
||||
{% endcall %}
|
||||
{% elif item[column].ignore %}
|
||||
{% elif item['columns'][column].ignore %}
|
||||
{% call field(status='default') %}
|
||||
{{ item[column].data if item[column].data != None }}
|
||||
{{ item['columns'][column].data if item['columns'][column].data != None }}
|
||||
{% endcall %}
|
||||
{% else %}
|
||||
{{ text_field(item[column].data) }}
|
||||
{{ text_field(item['columns'][column].data) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% 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-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