From 85e407a413bdc71e21e25ccc206df9a3d666fa8f Mon Sep 17 00:00:00 2001
From: Chris Mytton
Date: Tue, 3 Sep 2013 15:45:45 +0100
Subject: [Zurich] Only link to edit body for super user
---
templates/web/default/admin/bodies.html | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/bodies.html b/templates/web/default/admin/bodies.html
index a1555cac9..5840cde05 100644
--- a/templates/web/default/admin/bodies.html
+++ b/templates/web/default/admin/bodies.html
@@ -19,7 +19,11 @@
[% IF c.cobrand.moniker == 'zurich' %]
[% FILTER repeat(4*body.api_key) %] [% END %]
[% END %]
+ [% IF c.admin_type == 'super' %]
[% body.name %]
+ [% ELSE %]
+ [% body.name %]
+ [% END %]
[% IF c.cobrand.moniker != 'zurich' %]
[%- ', ' _ body.parent.name IF body.parent -%]
[% END %]
--
cgit v1.2.3
From f9a90b2ec49c3275a69eecc8c80d577485f8dd01 Mon Sep 17 00:00:00 2001
From: Chris Mytton
Date: Wed, 4 Sep 2013 12:48:08 +0100
Subject: [Zurich] Only superusers can see add body form
---
templates/web/default/admin/bodies.html | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/bodies.html b/templates/web/default/admin/bodies.html
index 5840cde05..08747b61b 100644
--- a/templates/web/default/admin/bodies.html
+++ b/templates/web/default/admin/bodies.html
@@ -48,7 +48,14 @@
[%- END %]
-
[% loc('Add body') %]
-[% INCLUDE 'admin/body-form.html', body='' %]
+[% IF c.cobrand.moniker == 'zurich' %]
+ [% IF c.admin_type == 'super' %]
+
[% loc('Add body') %]
+ [% INCLUDE 'admin/body-form.html', body='' %]
+ [% END %]
+[% ELSE %]
+
[% loc('Add body') %]
+ [% INCLUDE 'admin/body-form.html', body='' %]
+[% END %]
[% INCLUDE 'admin/footer.html' %]
--
cgit v1.2.3
From 84de2f1d14530f00f5f5784d93fb9d691a6d39d1 Mon Sep 17 00:00:00 2001
From: Chris Mytton
Date: Thu, 5 Sep 2013 10:23:56 +0100
Subject: Refer to stashed variables more idiomatically
---
templates/web/default/admin/bodies.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/bodies.html b/templates/web/default/admin/bodies.html
index 08747b61b..38463aa60 100644
--- a/templates/web/default/admin/bodies.html
+++ b/templates/web/default/admin/bodies.html
@@ -48,8 +48,8 @@
[%- END %]
-[% IF c.cobrand.moniker == 'zurich' %]
- [% IF c.admin_type == 'super' %]
+[% IF cobrand.moniker == 'zurich' %]
+ [% IF admin_type == 'super' %]
[% loc('Add body') %]
[% INCLUDE 'admin/body-form.html', body='' %]
[% END %]
--
cgit v1.2.3
From 7ce7a901c8fc53051f656755675bd5e936cb65c0 Mon Sep 17 00:00:00 2001
From: Chris Mytton
Date: Thu, 5 Sep 2013 10:54:53 +0100
Subject: Be consistent with references in templates
---
templates/web/default/admin/bodies.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/bodies.html b/templates/web/default/admin/bodies.html
index 38463aa60..e0cf013d8 100644
--- a/templates/web/default/admin/bodies.html
+++ b/templates/web/default/admin/bodies.html
@@ -19,7 +19,7 @@
[% IF c.cobrand.moniker == 'zurich' %]
[% FILTER repeat(4*body.api_key) %] [% END %]
[% END %]
- [% IF c.admin_type == 'super' %]
+ [% IF admin_type == 'super' %]
[% body.name %]
[% ELSE %]
[% body.name %]
@@ -48,7 +48,7 @@
[%- END %]
-[% IF cobrand.moniker == 'zurich' %]
+[% IF c.cobrand.moniker == 'zurich' %]
[% IF admin_type == 'super' %]
[% loc('Add body') %]
[% INCLUDE 'admin/body-form.html', body='' %]
--
cgit v1.2.3
From 3c7198debe764ea003c7d3dea5edfe7fd5fbc624 Mon Sep 17 00:00:00 2001
From: Dave Whiteland
Date: Sun, 4 Aug 2013 17:38:30 +0100
Subject: admin hint: empty MAPIT_TYPES probably wrong
if the MAPIT_URL is set but no areas returned
---
templates/web/default/admin/body-form.html | 10 ++++++++++
1 file changed, 10 insertions(+)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/body-form.html b/templates/web/default/admin/body-form.html
index 039d83ae2..aa3c1c9da 100644
--- a/templates/web/default/admin/body-form.html
+++ b/templates/web/default/admin/body-form.html
@@ -15,6 +15,16 @@
+ [% 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) %]
+
+ MAPIT_URL is set ([% c.config.MAPIT_URL %]) but no MAPIT_TYPES:
+ this is probably why "area covered" is empty (below).
+ Maybe add some MAPIT_TYPES to your config file?
+
[% loc('FixMyStreet admin:') %]
--
cgit v1.2.3
From 2cc0b90ba609b0043e792a76f99ab74761f01124 Mon Sep 17 00:00:00 2001
From: Dave Whiteland
Date: Wed, 7 Aug 2013 11:53:58 +0100
Subject: add open311 body form hint
---
templates/web/default/admin/body-form.html | 9 +++++++++
templates/web/default/admin/header.html | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/body-form.html b/templates/web/default/admin/body-form.html
index ec29faf5c..131df1f85 100644
--- a/templates/web/default/admin/body-form.html
+++ b/templates/web/default/admin/body-form.html
@@ -49,6 +49,15 @@
+ [% IF c.config.SHOW_ADMIN_HINTS %]
+
+ [% loc(
+ "These settings are for bodies that use Open311 (or other back-end integration) to receive problem reports.
+ You don't need to set them if the Send Method is email."
+ ) %]
+
+ [% END %]
+
diff --git a/templates/web/default/admin/header.html b/templates/web/default/admin/header.html
index cda9b5050..8cceaf728 100644
--- a/templates/web/default/admin/header.html
+++ b/templates/web/default/admin/header.html
@@ -7,7 +7,7 @@ dd { margin-left: 8em; }
select { width: auto; }
.admin-open311-only {
border:1px solid #666;
- padding:0 1em;
+ padding:1em;
margin: 1em 0;
}
--
cgit v1.2.3
From e237198173f3307fdf8c6866831116ae2f1f9f4a Mon Sep 17 00:00:00 2001
From: Dave Whiteland
Date: Wed, 7 Aug 2013 12:50:25 +0100
Subject: move new admin styles into _layout.scss
this is probably better practice since we can use sass
Maybe need to bring the other style declarations in header into scss file too
---
templates/web/default/admin/header.html | 5 -----
1 file changed, 5 deletions(-)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/header.html b/templates/web/default/admin/header.html
index 8cceaf728..6282bf383 100644
--- a/templates/web/default/admin/header.html
+++ b/templates/web/default/admin/header.html
@@ -5,11 +5,6 @@ dd { margin-left: 8em; }
.adminhidden { color: #666666; }
.error { color: red; }
select { width: auto; }
-.admin-open311-only {
- border:1px solid #666;
- padding:1em;
- margin: 1em 0;
-}
[% loc('FixMyStreet admin:') %]
--
cgit v1.2.3
From 881df2b66a925479c2149001f7f8017ec9c95cd7 Mon Sep 17 00:00:00 2001
From: Dave Whiteland
Date: Wed, 7 Aug 2013 16:55:35 +0100
Subject: add hint for 'add bodies'
---
templates/web/default/admin/body-form.html | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/body-form.html b/templates/web/default/admin/body-form.html
index 131df1f85..d005afd10 100644
--- a/templates/web/default/admin/body-form.html
+++ b/templates/web/default/admin/body-form.html
@@ -1,5 +1,11 @@
+
+
+ [% loc(
+ "The body's name identifies the body (for example, Borsetshire District Council)
+ and may be displayed publically."
+ ) %]
+
+
--
cgit v1.2.3
From a95643f99feee3eeb70bbb2be5aba87a7cbee254 Mon Sep 17 00:00:00 2001
From: Dave Whiteland
Date: Wed, 7 Aug 2013 16:57:29 +0100
Subject: add body parent hint
---
templates/web/default/admin/body-form.html | 8 ++++++++
1 file changed, 8 insertions(+)
(limited to 'templates/web/default/admin')
diff --git a/templates/web/default/admin/body-form.html b/templates/web/default/admin/body-form.html
index 9b0f7c4b1..acfab8b77 100644
--- a/templates/web/default/admin/body-form.html
+++ b/templates/web/default/admin/body-form.html
@@ -20,6 +20,14 @@
+
+
+ [% loc(
+ "Identify a parent if this body is itself part of another body.
+ For basic installations, you don't need to join bodies in this way."
+ ) %]
+