aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/admin/templates/view.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/admin/templates/view.html')
-rw-r--r--templates/web/base/admin/templates/view.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/web/base/admin/templates/view.html b/templates/web/base/admin/templates/view.html
new file mode 100644
index 000000000..6a1dd9614
--- /dev/null
+++ b/templates/web/base/admin/templates/view.html
@@ -0,0 +1,39 @@
+[% INCLUDE 'admin/header.html' title=tprintf(loc('Response Templates for %s'), body.name) -%]
+
+<table>
+ <thead>
+ <tr>
+ <th> [% loc('Title') %] </th>
+ <th> [% loc('Categories') %] </th>
+ <th> [% loc('State') %] </th>
+ <th> [% loc('Auto Response') %] </th>
+ <th> &nbsp; </th>
+ </tr>
+ </thead>
+ <tbody>
+[% FOR t IN response_templates %]
+ <tr>
+ <td> [% t.title | html %] </td>
+ <td>
+ [% UNLESS t.contacts.size %]
+ <em>[% loc('All categories') %]</em>
+ [% ELSE %]
+ [% FOR contact IN t.contacts %]
+ [% contact.category_display %][% ',' UNLESS loop.last %]
+ [% END %]
+ [% END %]
+ </td>
+ <td>
+ [% IF t.state %][% t.state | html %][% END %]
+ [% IF t.external_status_code %][% t.external_status_code | html %] (external)[% END %]
+ </td>
+ <td> [% IF t.auto_response %]X[% END %] </td>
+ <td> <a href="[% c.uri_for_action('/admin/templates/edit', body.id, t.id) %]" class="btn">[% loc('Edit') %]</a> </td>
+ </tr>
+[% END %]
+ </tbody>
+</table>
+
+<a href="[% c.uri_for_action('/admin/templates/index', body.id, 'new') %]" class="btn">[% loc('New template') %]</a>
+
+[% INCLUDE 'admin/footer.html' %]