blob: 1deda6a7706745c6820adf4ddaa04d351c10c4a8 (
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
37
38
|
[% INCLUDE 'admin/header.html' title=tprintf(loc('Response Templates for %s'), body.name) -%]
[% rt = response_template %]
<h2> [% tprintf(loc('Response Templates for %s'), body.name) %] </h2>
<h3> [% IF rt.id %]
[% tprintf(loc('Template «%s»'), rt.title) %]
[% ELSE %]
[% loc('New template') %]
[% END %]
</h3>
<form method="post"
action="[% c.uri_for('templates', body.id, rt.id || 'new' ) %]"
enctype="application/x-www-form-urlencoded"
accept-charset="utf-8"
class="validate">
<p>
<strong>[% loc('Title:') %] </strong>
<input type="text" name="title" class="required" size="30" value="[% rt.title| html %]">
</p>
<p>
<strong>[% loc('Text:') %] </strong>
<textarea name="text" class="required">[% rt.text |html %]</textarea>
</p>
<p>
<input type="hidden" name="token" value="[% token %]" >
<input type="submit" name="Edit templates" value="[% rt.id ? loc('Save changes') : loc('Create template') %]" >
</p>
[% IF rt.id %]
<p>
<input class="delete" type="submit" name="delete_template" value="[% loc('Delete template') %]">
</p>
[% END %]
</form>
[% INCLUDE 'admin/footer.html' %]
|