Merge pull request #937 from alphagov/id-in-table

Show notification ID in notification table
This commit is contained in:
Chris Hill-Scott
2016-09-12 15:39:21 +01:00
committed by GitHub
7 changed files with 40 additions and 44 deletions

View File

@@ -28,7 +28,7 @@
{% call mapping_table(caption, field_headings, field_headings_visible, caption_visible) %}
{% for item in items %}
{% call row() %}
{% call row(item.id) %}
{{ parent_caller(item, loop.index + 1) }}
{% endcall %}
{% endfor %}
@@ -43,8 +43,8 @@
{%- endmacro %}
{% macro row() -%}
<tr class="table-row">
{% macro row(id=None) -%}
<tr class="table-row" {% if id %}id="{{id}}"{% endif %}>
{{ caller() }}
</tr>
{%- endmacro %}

View File

@@ -1,33 +0,0 @@
{% extends "withnav_template.html" %}
{% from "components/sms-message.html" import sms_message, message_status %}
{% from "components/banner.html" import banner %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
Text message GOV.UK Notify
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">
Text message
</h1>
<div class="grid-row">
<div class="column-two-thirds">
{{ sms_message(message.message, message.phone) }}
</div>
<div class="column-one-third">
{{ banner(
"{} {}".format(message.status, delivered_at)
) }}
</div>
</div>
{{ page_footer(
secondary_link = url_for('.view_job', service_id=current_service.id, job_id=job_id),
secondary_link_text = 'View other messages in this job'
) }}
{% endblock %}