From 8140fcb14ce0a32273d3e98327968d77e98fa002 Mon Sep 17 00:00:00 2001
From: Matthew Somerville
Date: Sat, 31 Aug 2013 11:56:47 +0100
Subject: Make 'Permalink' JS string translatable.
---
templates/web/default/js/translation_strings.html | 2 ++
1 file changed, 2 insertions(+)
(limited to 'templates/web/default')
diff --git a/templates/web/default/js/translation_strings.html b/templates/web/default/js/translation_strings.html
index a0cfc02c9..f6c4f7d41 100644
--- a/templates/web/default/js/translation_strings.html
+++ b/templates/web/default/js/translation_strings.html
@@ -36,5 +36,7 @@
ok: '[% loc('OK') | replace("'", "\\'") %]',
map: '[% loc('MAP') | replace("'", "\\'") %]',
+ permalink: '[% loc('Permalink') | replace("'", "\\'") %]',
+
report_problem_heading: '[% loc('Click map to report a problem') | replace("'", "\\'") %]'
};
--
cgit v1.2.3
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')
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')
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 1e6093eb3b5389dd7590f458f229d5bd630131d3 Mon Sep 17 00:00:00 2001
From: Chris Mytton
Date: Wed, 4 Sep 2013 17:32:40 +0100
Subject: [Zurich] Add js validation for phone number
---
templates/web/default/js/validation_rules.html | 3 +++
1 file changed, 3 insertions(+)
(limited to 'templates/web/default')
diff --git a/templates/web/default/js/validation_rules.html b/templates/web/default/js/validation_rules.html
index 409d0971f..f9b4f3e42 100644
--- a/templates/web/default/js/validation_rules.html
+++ b/templates/web/default/js/validation_rules.html
@@ -3,5 +3,8 @@
detail: { required: true },
email: { required: true },
update: { required: true },
+ [% IF c.cobrand.moniker == 'zurich' %]
+ phone: { required: true },
+ [% END %]
rznvy: { required: true }
};
--
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')
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')
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 2bd3662a990096b6dbd5279191172560297da644 Mon Sep 17 00:00:00 2001
From: Chris Mytton
Date: Thu, 5 Sep 2013 16:10:23 +0100
Subject: [Zurich] Override the validation_rules template
---
templates/web/default/js/validation_rules.html | 3 ---
1 file changed, 3 deletions(-)
(limited to 'templates/web/default')
diff --git a/templates/web/default/js/validation_rules.html b/templates/web/default/js/validation_rules.html
index f9b4f3e42..409d0971f 100644
--- a/templates/web/default/js/validation_rules.html
+++ b/templates/web/default/js/validation_rules.html
@@ -3,8 +3,5 @@
detail: { required: true },
email: { required: true },
update: { required: true },
- [% IF c.cobrand.moniker == 'zurich' %]
- phone: { required: true },
- [% END %]
rznvy: { required: true }
};
--
cgit v1.2.3
From dbd5376d42beb4744e9e9e2a020f878a2821b00b Mon Sep 17 00:00:00 2001
From: Matthew Somerville
Date: Thu, 5 Sep 2013 15:43:06 +0100
Subject: Spell out all "marked as %s" strings.
As doing interpolation from a database state field is not great for
translation. Fixes #391.
---
templates/web/default/report/updates.html | 39 ++++++++++++++++++++++++-------
1 file changed, 30 insertions(+), 9 deletions(-)
(limited to 'templates/web/default')
diff --git a/templates/web/default/report/updates.html b/templates/web/default/report/updates.html
index 83f746d56..9134c34f8 100644
--- a/templates/web/default/report/updates.html
+++ b/templates/web/default/report/updates.html
@@ -23,21 +23,42 @@
[%- ELSE %]
[% tprintf( loc( 'Posted by %s at %s' ), update.name, prettify_dt( update.confirmed ) ) | html -%]
[%- END -%]
+
[%- update_state = '' %]
- [%- IF update.mark_fixed %][% update_state = ", " _ loc( 'marked as fixed' ) %][% END %]
- [%- IF update.mark_open %][% update_state = ", " _ loc( 'reopened' ) %][% END %]
+ [%- IF update.mark_fixed %][% update_state = loc( 'marked as fixed' ) %][% END %]
+ [%- IF update.mark_open %][% update_state = loc( 'reopened' ) %][% END %]
[%- IF !update_state && update.problem_state %]
[%- state = update.meta_problem_state %]
[%- IF c.cobrand.moniker == 'bromley' OR problem.bodies_str == '2482' %]
- [%- SET state = loc('no further action') IF update.problem_state == 'unable to fix' %]
- [%- SET state = loc('third party responsibility') IF update.problem_state == 'not responsible' %]
+ [%- update_state = 'marked as no further action' IF state == 'unable to fix' %]
+ [%- update_state = 'marked as third party responsibility' IF state == 'not responsible' %]
[%- END %]
- [%- IF update.problem_state == 'confirmed' AND global.last_state != '' %]
- [%- update_state = ", " _ loc('reopened') %]
- [%- ELSIF update.problem_state != 'confirmed' %]
- [%- update_state = ", " _ tprintf(loc( 'marked as %s' ), state ) %]
+ [%- END %]
+ [%- IF !update_state && update.problem_state %]
+ [%- IF state == 'confirmed' AND global.last_state != '' %]
+ [%- update_state = loc( 'reopened' ) %]
+ [%- ELSIF state == 'investigating' %]
+ [%- update_state = loc( 'marked as investigating' ) %]
+ [%- ELSIF state == 'planned' %]
+ [%- update_state = loc( 'marked as planned' ) %]
+ [%- ELSIF state == 'in progress' %]
+ [%- update_state = loc( 'marked as in progress' ) %]
+ [%- ELSIF state == 'action scheduled' %]
+ [%- update_state = loc( 'marked as action scheduled' ) %]
+ [%- ELSIF state == 'closed' %]
+ [%- update_state = loc( 'marked as closed' ) %]
+ [%- ELSIF state == 'fixed' %]
+ [%- update_state = loc( 'marked as fixed' ) %]
+ [%- ELSIF state == 'unable to fix' %]
+ [%- update_state = loc( 'marked as unable to fix' ) %]
+ [%- ELSIF state == 'not responsible' %]
+ [%- update_state = loc( "marked as not the council's responsibility" ) %]
+ [%- ELSIF state == 'duplicate' %]
+ [%- update_state = loc( 'marked as a duplicate report' ) %]
+ [%- ELSIF state == 'internal referral' %]
+ [%- update_state = loc( 'marked as an internal referral' ) %]
[%- END %]
[%- END %]
- [%- update_state IF update_state != global.last_state %]
+ [%- ", " _ update_state IF update_state != global.last_state %]
[%- global.last_state = update_state %]
[% END %]
--
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')
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')
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')
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')
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')
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."
+ ) %]
+