mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Add view for a single template
> At the moment, we have an all email templates page, and an edit an > individual page. > > This gets messy when we refer to templates like the dashboard and the > activity views. We solve this currently by using anchor links to the > list page, but this is clunky. > > So lets add it, then update the links on the dash and activity to the > new view page. > > Should be a link from the view a single template page, to the template > hub page. https://www.pivotaltracker.com/story/show/117349227
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<a href="{{ url_for(".view_notifications", service_id=current_service.id, status=['delivered'], page=1) }}">Successful messages</a> 
|
||||
<a href="{{ url_for(".view_notifications", service_id=current_service.id, status=['failed'], page=1) }}">Failed messages</a>
|
||||
</p>
|
||||
|
||||
{% call(item, row_number) list_table(
|
||||
notifications,
|
||||
caption="Recent activity",
|
||||
@@ -31,7 +32,7 @@
|
||||
{{ item.to }}
|
||||
{% endcall %}
|
||||
{% call field() %}
|
||||
<a href="{{ url_for(".choose_template", service_id=current_service.id, template_type=item.template.template_type, _anchor=item.template.name|linkable_name) }}">{{ item.template.name }}</a>
|
||||
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.template.id) }}">{{ item.template.name }}</a>
|
||||
{% endcall %}
|
||||
{% call field() %}
|
||||
{{ item.template.template_type }}
|
||||
|
||||
Reference in New Issue
Block a user