aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zurich/admin/body.html
blob: 143e61f831cbc0b454f1a378105c25d8469cf965 (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
[% INCLUDE 'admin/header.html' title=tprintf(loc('Council contacts for %s'), body.name) -%]

[% IF updated %]
<p>
<em>[% updated %]</em>
</p>
[% END %]

[% IF admin_type == 'super' AND body.parent AND body.bodies # A division %]
    <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>
        </tr>
        [% WHILE ( contact = contacts.next ) %]
            <tr>
                <td><a href="[% c.uri_for( 'body_edit', body_id, contact.category ) %]">[% contact.category %]</a></td>
                <td>[% contact.email | html %]</td>
                <td>[% contact.editor %]</td>
                <td>[% contact.note | html %]</td>
                <td>[% contact.whenedited.ymd _ ' ' _ contact.whenedited.hms %]</td>
            </tr>
        [% END %]
    </table>

    <h2>[% loc('Add new category') %]</h2>

    <form method="post" action="[% c.uri_for('body', body_id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">

        [% IF c.cobrand.moniker != 'emptyhomes' %]
        <p>
        <strong>[% loc('Category:') %] </strong><input type="text" name="category" size="30">
        </p>
        [% END %]

        <p>
        <strong>[% loc('Email:') %] </strong><input type="text" name="email" size="30">
        </p>

        <input type="hidden" name="confirmed" value="1" id="confirmed"> 

        <p>
        <strong>[% loc('Note:') %] </strong> <textarea name="note" rows="3" cols="40"></textarea>
        </p>

        <p>
        <input type="hidden" name="posted" value="new" >
        <input type="hidden" name="token" value="[% token %]" >
        <input type="submit" name="Create category" value="[% loc('Create category') %]" >
        </p>

        <div>
            <input type="hidden" name=".cgifields" value="confirmed" >
            <input type="hidden" name=".cgifields" value="deleted" >
        </div>
    </form>

[% END %]

    <h2>[% loc('Edit body details') %]</h2>
    [% INCLUDE 'admin/body-form.html' %]

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