diff options
-rw-r--r-- | templates/web/default/admin/bodies.html | 17 | ||||
-rw-r--r-- | templates/web/default/admin/edit-league.html | 14 | ||||
-rw-r--r-- | templates/web/zurich/admin/body-form.html | 44 | ||||
-rw-r--r-- | templates/web/zurich/admin/edit-league.html | 0 | ||||
-rw-r--r-- | templates/web/zurich/admin/header.html | 4 |
5 files changed, 62 insertions, 17 deletions
diff --git a/templates/web/default/admin/bodies.html b/templates/web/default/admin/bodies.html index 74adfa836..047623e27 100644 --- a/templates/web/default/admin/bodies.html +++ b/templates/web/default/admin/bodies.html @@ -1,19 +1,6 @@ -[% INCLUDE 'admin/header.html' title=loc('Council contacts') -%] +[% INCLUDE 'admin/header.html' title=loc('Bodies') -%] -<h2>[% loc('Diligency prize league table') %]</h2> -[% IF edit_activity.count %] -<ul> - [% WHILE ( editor = edit_activity.next ) %] - <li>[% tprintf( loc('%d edits by %s'), editor.get_column('c'), editor.editor ) %]</li> - [% END %] -</ul> -[% ELSE %] -<p> -[% loc('No edits have yet been made.') %] -</p> -[% END %] - -<h2>[% loc('Councils') %]</h2> +[% INCLUDE 'admin/edit-league.html' %] [%- FOREACH body IN bodies %] [%- SET id = body.id %] diff --git a/templates/web/default/admin/edit-league.html b/templates/web/default/admin/edit-league.html new file mode 100644 index 000000000..6bf71537e --- /dev/null +++ b/templates/web/default/admin/edit-league.html @@ -0,0 +1,14 @@ +<h2>[% loc('Diligency prize league table') %]</h2> +[% IF edit_activity.count %] +<ul> + [% WHILE ( editor = edit_activity.next ) %] + <li>[% tprintf( loc('%d edits by %s'), editor.get_column('c'), editor.editor ) %]</li> + [% END %] +</ul> +[% ELSE %] +<p> +[% loc('No edits have yet been made.') %] +</p> +[% END %] + + diff --git a/templates/web/zurich/admin/body-form.html b/templates/web/zurich/admin/body-form.html new file mode 100644 index 000000000..fe4137043 --- /dev/null +++ b/templates/web/zurich/admin/body-form.html @@ -0,0 +1,44 @@ + <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"> + + <p> + <label for="name">Name</label> + <input type="text" name="name" id="name" value="[% body.name %]" size="50"> + </p> + + <p> + <label for="parent">Parent</label> + <select name="parent" id="parent"> + <option value=""> -- 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> + + <p> + <label for="area_ids">Area covered</label> + <select name="area_ids" id="area_ids" multiple> + <option value=""> -- 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> + + <input type="hidden" name="send_method" value="Email"> + <input type="hidden" name="endpoint" id="endpoint" value="[% body.endpoint %]"> + <input type="hidden" name="jurisdiction" id="jurisdiction" value="[% body.jurisdiction %]"> + <input type="hidden" name="api_key" id="api_key" value="[% body.api_key %]"> + <input type="hidden" id="send_comments" name="send_comments" value="[% body.send_comments %]"> + <input type="hidden" name="comment_user_id" value="[% body.comment_user_id %]"> + <input type="hidden" id="suppress_alerts" name="suppress_alerts" value="[% body.suppress_alerts %]"> + <input type="hidden" id="can_be_devolved" name="can_be_devolved" value="[% body.can_be_devolved %]"> + + <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> + diff --git a/templates/web/zurich/admin/edit-league.html b/templates/web/zurich/admin/edit-league.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/web/zurich/admin/edit-league.html diff --git a/templates/web/zurich/admin/header.html b/templates/web/zurich/admin/header.html index 252f4c2d1..e9a0ac04a 100644 --- a/templates/web/zurich/admin/header.html +++ b/templates/web/zurich/admin/header.html @@ -11,10 +11,10 @@ select { width: auto; } <a href="/admin/summary">[% loc('Summary') %]</a> [% IF admin_type == 'dm' OR admin_type == 'super' %] | <a href="/admin/bodies">[% loc('Bodies') %]</a> - | <a href="/admin/reports">[% loc('Reports') %]</a> + <!-- | <a href="/admin/reports">[% loc('Reports') %]</a> --> <!-- | <a href="timeline">Timeline</a> --> <!-- | <a href="questionnaire">Survey</a> --> - | <a href="/admin/users">[% loc('Users') %]</a> + <!-- | <a href="/admin/users">[% loc('Users') %]</a> --> <!-- | <a href="flagged">Flagged</a> --> <!-- | <a href="stats">Stats</a> --> [% END %] |