diff options
-rw-r--r-- | templates/web/default/admin/bodies.html | 14 | ||||
-rw-r--r-- | templates/web/default/admin/body.html | 4 | ||||
-rw-r--r-- | templates/web/zurich/admin/body-form.html | 12 |
3 files changed, 20 insertions, 10 deletions
diff --git a/templates/web/default/admin/bodies.html b/templates/web/default/admin/bodies.html index 047623e27..d6c706fce 100644 --- a/templates/web/default/admin/bodies.html +++ b/templates/web/default/admin/bodies.html @@ -4,16 +4,11 @@ [%- FOREACH body IN bodies %] [%- SET id = body.id %] - [%- IF body.parent_area %] - [%- - p_area = areas.$body.parent_area - parent = ', ' _ areas.$parent.name - %] - [%- ELSE %] - [%- parent = '' %] - [%- END %] [%- '<ul>' IF loop.first %] - <li><a href="[% c.uri_for( 'body', id ) %]">[% body.name %] [% parent %]</a> + [% NEXT IF c.cobrand.moniker == 'zurich' AND admin_type == 'dm' AND (body.parent OR body.bodies) %] + <li><a href="[% c.uri_for( 'body', id ) %]">[% body.name %]</a> + [%- ', ' _ body.parent.name IF body.parent -%] + [% IF c.cobrand.moniker != 'zurich' %] – [% IF counts.$id %] [% tprintf( loc('%d addresses'), counts.$id.c) IF c.cobrand.moniker != 'emptyhomes' %] @@ -25,6 +20,7 @@ [% ELSE %] no categories [% END %] + [% END %] [%- '</ul>' IF loop.last %] [%- END %] diff --git a/templates/web/default/admin/body.html b/templates/web/default/admin/body.html index 120a07da9..4b397d045 100644 --- a/templates/web/default/admin/body.html +++ b/templates/web/default/admin/body.html @@ -6,6 +6,8 @@ </p> [% END %] +[% IF c.cobrand.moniker != 'zurich' OR admin_type == 'super' %] + <p> [% IF example_pc %] <a href="[% c.uri_for_email( '/around', { pc => example_pc } ) %]">[% tprintf( loc('Example postcode %s'), example_pc ) | html %]</a> | @@ -109,6 +111,8 @@ </div> </form> +[% END %] + <h2>[% loc('Edit body details') %]</h2> [% INCLUDE 'admin/body-form.html' %] diff --git a/templates/web/zurich/admin/body-form.html b/templates/web/zurich/admin/body-form.html index 4f3e8df1d..1fa606008 100644 --- a/templates/web/zurich/admin/body-form.html +++ b/templates/web/zurich/admin/body-form.html @@ -5,6 +5,16 @@ <input type="text" name="name" id="name" value="[% body.name %]" size="50"> </p> +[% IF admin_type == 'dm' %] + <p> + <label for="email">[% loc('Email') %]</label> + <input type="text" name="endpoint" id="email" value="[% body.endpoint %]" size="50"> + </p> +[% ELSE %] + <input type="hidden" name="endpoint" id="endpoint" value="[% body.endpoint %]"> +[% END %] + +[% IF admin_type == 'super' %] <p> <label for="parent">[% loc('Parent') %]</label> <select name="parent" id="parent"> @@ -25,9 +35,9 @@ [% END %] </select> </p> +[% END %] <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 %]"> |