blob: a4dc612130e58d89e20e7a520d2e44de565f2a72 (
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
39
40
41
42
43
44
45
46
47
48
49
50
|
[% INCLUDE 'admin/header.html' title=tprintf(loc('Response Priority for %s'), body.name) -%]
[% rp = response_priority %]
[% UNLESS rp.id %]<h3>[% loc('New priority') %]</h3>[% END %]
<form method="post"
action="[% c.uri_for('', body.id, rp.id || 'new' ) %]"
enctype="application/x-www-form-urlencoded"
accept-charset="utf-8"
class="validate">
<p>
<strong>[% loc('Name:') %] </strong>
<input type="text" name="name" class="required form-control" size="30" value="[% rp.name | html %]">
</p>
<p>
<strong>[% loc('Description:') %] </strong>
<input type="text" name="description" class="form-control" size="30" value="[% rp.description | html %]">
</p>
<div class="admin-hint">
<p>
[% loc('If this priority is passed to an external service (e.g. Exor/Confirm) enter the priority code to use with that service here.') %]
</p>
</div>
<p>
<strong>[% loc('External ID:') %] </strong>
<input type="text" name="external_id" class="form-control" size="30" value="[% rp.external_id | html %]">
</p>
<div class="admin-hint">
<p>
[% loc('If you only want this priority to be an option for specific categories, pick them here. By default they will show for all categories.') %]
</p>
</div>
[% INCLUDE 'admin/category-checkboxes.html' %]
<p>
<label>
<input type="checkbox" name="deleted" id="deleted" value="1"[% ' checked' IF rp.deleted %]>
[% loc('Flag as deleted') %]
</label>
</p>
<p>
<input type="hidden" name="token" value="[% csrf_token %]" >
<input type="submit" class="btn" name="Edit priorities" value="[% rp.id ? loc('Save changes') : loc('Create priority') %]" >
</p>
</form>
[% INCLUDE 'admin/footer.html' %]
|