blob: d005afd104b857b085ed6fc6dc676f0c3d74bd63 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
<form method="post" action="[% body ? c.uri_for('body', body.id) : c.uri_for('bodies') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
<div class="fms-admin-info">
[% loc(
"Add a <strong>body</strong> for each administrative body, such as a council or department
to which problem reports can be sent. You can add one or more contacts (for different
categories of problem) to each body."
) %]
</div>
<p>
<label for="name">[% loc('Name') %]</label>
<input type="text" name="name" id="name" value="[% body.name %]" size="50">
</p>
<p>
<label for="parent">[% loc('Parent') %]</label>
<select name="parent" id="parent">
<option value=""> -- [% loc('Select a body') %] -- </option>
[% FOR b IN bodies %]
<option value="[% b.id %]"[% ' selected' IF body.parent.id == b.id %]>[% b.name %]</option>
[% END %]
</select>
</p>
[% IF c.config.SHOW_ADMIN_HINTS AND areas.size == 0 %]
[% IF c.config.MAPIT_URL AND (NOT c.config.MAPIT_TYPES OR c.config.MAPIT_TYPES.size==O) %]
<p class="fms-admin-warning">
[% tprintf( loc(
'<code>MAPIT_URL</code> is set (<code>%s</code>) but no <code>MAPIT_TYPES</code>.<br>
This is probably why "area covered" is empty (below).<br>
Maybe add some <code>MAPIT_TYPES</code> to your config file?'), c.config.MAPIT_URL)
%]
</p>
[% END %]
[% END %]
<p>
<label for="area_ids">[% loc('Area covered') %]</label>
<select name="area_ids" id="area_ids" multiple>
<option value=""> -- [% loc('Select an area') %] -- </option>
[% FOR area IN areas %]
[% SET aid = area.id %]
<option value="[% area.id %]"[% ' selected' IF body.areas.$aid %]>[% area.name %]</option>
[% END %]
</select>
</p>
<p>
<label for="send_method">Send Method</label>
<select name="send_method" id="send_method">
<option value=""> -- Select a method -- </option>
[% FOR method IN send_methods %]
<option value="[% method %]"[% ' selected' IF body.send_method == method %]>[% method %]</option>
[% END %]
</select>
</p>
<div class="admin-open311-only">
[% IF c.config.SHOW_ADMIN_HINTS %]
<p class="fms-admin-info">
[% loc(
"These settings are for bodies that use Open311 (or other back-end integration) to receive problem reports.<br>
You don't need to set them if the Send Method is email."
) %]
</p>
[% END %]
<p>
<label for="endpoint">[% loc('Endpoint') %]</label>
<input type="text" name="endpoint" id="endpoint" value="[% body.endpoint %]" size="50">
</p>
<p>
<label for="jurisdiction">Open311 Jurisdiction</label>
<input type="text" name="jurisdiction" id="jurisdiction" value="[% body.jurisdiction %]" size="50">
</p>
<p>
<label for="api_key">Open311 API Key</label>
<input type="text" name="api_key" id="api_key" value="[% body.api_key %]" size="25">
</p>
<p>
<input type="checkbox" id="send_comments" name="send_comments"[% ' checked' IF body.send_comments %]>
<label for="send_comments" class="inline">Use Open311 comment sending extension</label>
</p>
<p>
<label for"comment_user_id">User ID to attribute fetched comments to</label>
<input type="text" name="comment_user_id" value="[% body.comment_user_id %]">
</p>
<p>
<input type="checkbox" id="suppress_alerts" name="suppress_alerts"[% ' checked' IF body.suppress_alerts %]>
<label for="suppress_alerts" class="inline">Do not send email alerts on fetched comments to problem creator</label>
</p>
<p>
<input type="checkbox" id="can_be_devolved" name="can_be_devolved"[% ' checked' IF body.can_be_devolved %]>
<label for="can_be_devolved" class="inline">Endpoint lookup can be devolved to contacts</label>
</p>
<p>
<label for="send_extended_statuses">Send extended open311 statuses with service request updates</label>:
<input type="checkbox" id="send_extended_statuses" name="send_extended_statuses"[% ' checked' IF conf.send_extended_statuses %]>
</p>
</div>
<p>
<input type="hidden" name="posted" value="body">
<input type="hidden" name="token" value="[% token %]">
<input type="submit" value="[% body ? loc('Update body') : loc('Add body') %]">
</p>
</form>
|