blob: 11be6eef73ab1ded683321a70dcdf535cc31bdf4 (
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
|
[% INCLUDE 'admin/header.html' title=tprintf(loc('Council contacts for %s'), body.name) -%]
[% PROCESS 'admin/report_blocks.html' %]
[% IF updated %]
<p>
<em>[% updated %]</em>
</p>
[% END %]
[% IF admin_type == 'super' AND body.parent AND NOT body.parent.parent # A division %]
[% IF NOT errors %]
<table cellspacing="0" cellpadding="2" border="1">
<tr>
<th>[% loc('Category') %]</th>
<th>[% loc('Email') %]</th>
<th>[% loc('Last editor') %]</th>
<th>[% loc('Note') %]</th>
<th>[% loc('When edited') %]</th>
<th>Kürzel</th>
</tr>
[% WHILE ( cat = contacts.next ) %]
<tr[% IF cat.state == 'deleted' %] class="is-deleted"[% END %]>
<td><a href="[% c.uri_for( 'body', body_id, cat.category ) %]">[% cat.category_display %]</a></td>
<td>[% cat.email | html %]</td>
<td>[% cat.editor %]</td>
<td>[% cat.note | html %]</td>
<td>[% PROCESS format_date this_date=cat.whenedited %]</td>
<td>[% cat.get_extra_metadata('abbreviation') %]</td>
</tr>
[% END %]
</table>
<h2>[% loc('Add new category') %]</h2>
[% END %][%# Only show all the above if no errors with below form %]
[% IF errors %]
<div class="fms-admin-warning">
[% errors.values.join('<br>') %]
</div>
[% END %]
[% INCLUDE 'admin/contact-form.html' %]
[% END %]
[% IF NOT errors %]
<h2>[% loc('Edit body details') %]</h2>
[% INCLUDE 'admin/body-form.html' %]
[% END %]
[% INCLUDE 'admin/footer.html' %]
|