aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/admin/responsepriorities/edit.html
blob: b9074999ff64f73b09b3ab61ebe0b15650468cdb (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
[% INCLUDE 'admin/header.html' title=tprintf(loc('Response Priority for %s'), body.name) -%]

[% UNLESS obj %]<h3>[% loc('New priority') %]</h3>[% END %]

<form method="post" accept-charset="utf-8" class="validate">

    [% form.field('name').render | safe %]
    [% form.field('description').render | safe %]

    <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>
    [% form.field('external_id').render | safe %]

    <div class="admin-hint">
      <p>
        [% loc('Select if this is the default priority') %]
      </p>
    </div>
    [% form.field('is_default').render | safe %]

    <fieldset>
        <legend>
            <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>
            [% loc('Categories:') %]
        </legend>
        [%# TODO Select all/none %]
        [% form.field('contacts').render | safe %]
    </fieldset>

    [% form.field('deleted').render | safe %]

    <p>
      <input type="hidden" name="token" value="[% csrf_token %]" >
      <input type="submit" class="btn" name="Edit priorities" value="[% obj ? loc('Save changes') : loc('Create priority') %]" >
    </p>

</form>

[% INCLUDE 'admin/footer.html' %]