Add date field back into template stats

This commit is contained in:
Adam Shimali
2016-04-06 15:06:02 +01:00
parent 91de8c504d
commit 2dbf522932
2 changed files with 26 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
template_statistics,
caption="Recent templates used",
empty_message='You havent sent any batch messages yet',
field_headings=['Template', 'Type', right_aligned_field_heading('Usage')]
field_headings=['Template', 'Type', 'Date', right_aligned_field_heading('Usage')]
) %}
{% call field() %}
<a href="{{ url_for('.edit_service_template', service_id=current_service.id, template_id=item.template.id) }}">
@@ -13,7 +13,10 @@
{% call field() %}
{{item.template.template_type}}
{% endcall %}
{% call field(align='right') %}
{% call field() %}
{{item.day|format_date}}
{% endcall %}
{% call field(align='right') %}
{{ item.usage_count }}
{% endcall %}
{% endcall %}