blob: 444f2734d850300fcb116c67cfe2efc78f35b382 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
[% 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> </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> [% t.state | html %] </td>
<td> [% IF t.auto_response %]X[% END %] </td>
<td> <a href="[% c.uri_for('templates', body.id, t.id) %]" class="btn">[% loc('Edit') %]</a> </td>
</tr>
[% END %]
</tbody>
</table>
<a href="[% c.uri_for('templates', body.id, 'new') %]" class="btn">[% loc('New template') %]</a>
[% INCLUDE 'admin/footer.html' %]
|