Update app to the latest notifications_utils.

This commit is contained in:
Nicholas Staples
2016-04-28 14:02:51 +01:00
parent 337eeb60d1
commit fbf30129b0
3 changed files with 7 additions and 8 deletions

View File

@@ -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,

View File

@@ -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 %}

View File

@@ -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