aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default')
-rw-r--r--templates/web/default/admin/body-form.html5
-rw-r--r--templates/web/default/around/around_index.html54
-rwxr-xr-xtemplates/web/default/around/display_location.html6
-rw-r--r--templates/web/default/common_header_tags.html1
-rw-r--r--templates/web/default/dashboard/index.html18
-rw-r--r--templates/web/default/front/stats.html2
-rw-r--r--templates/web/default/index-steps.html19
-rw-r--r--templates/web/default/index.html6
-rw-r--r--templates/web/default/js/validation_rules.html7
-rw-r--r--templates/web/default/questionnaire/index.html4
-rw-r--r--templates/web/default/report/_main.html2
-rw-r--r--templates/web/default/report/banner.html2
-rw-r--r--templates/web/default/report/display.html13
-rw-r--r--templates/web/default/report/new/category.html2
-rw-r--r--templates/web/default/report/new/fill_in_details_form.html2
-rw-r--r--templates/web/default/report/update-form.html8
-rw-r--r--templates/web/default/report/updates.html21
-rw-r--r--templates/web/default/report_created.html9
-rwxr-xr-xtemplates/web/default/reports/body.html7
19 files changed, 122 insertions, 66 deletions
diff --git a/templates/web/default/admin/body-form.html b/templates/web/default/admin/body-form.html
index 7653f2884..039d83ae2 100644
--- a/templates/web/default/admin/body-form.html
+++ b/templates/web/default/admin/body-form.html
@@ -72,6 +72,11 @@
</p>
<p>
+ <label for="send_extended_statuses">Send extended open311 statuses with service request updates</label>:
+ <input type="checkbox" id="send_extended_statuses" name="send_extended_statuses"[% ' checked' IF conf.send_extended_statuses %]>
+ </p>
+
+ <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') %]">
diff --git a/templates/web/default/around/around_index.html b/templates/web/default/around/around_index.html
index f58d13d80..a143e90a2 100644
--- a/templates/web/default/around/around_index.html
+++ b/templates/web/default/around/around_index.html
@@ -1,34 +1,24 @@
-[% INCLUDE 'header.html', title => loc('Reporting a problem') %]
-
-[%
- # NOTE ON PARTIAL REPORTS:
- #
- # partial reports get a bit of extra text added, the form goes to
- # '/report/new' and the partial hidden field is added to the form.
-%]
-
-[% INCLUDE 'around/postcode_form.html' %]
-
-[% IF location_error %]
- <p class="error">[% location_error %]</p>
-[% END %]
-
-[% IF possible_location_matches %]
- <p>[% loc('We found more than one match for that location. We show up to ten matches, please try a different search if yours is not here.') %]</p>
- <ul class="pc_alternatives">
- [% FOREACH match IN possible_location_matches %]
- <li><a href="/around?latitude=[% match.latitude | uri %];longitude=[% match.longitude | uri %]">[% match.address | html %]</a></li>
- [% END %]
- </ul>
-[% END %]
-
-[% IF partial_token %]
- <p style="margin-top: 0; color: #cc0000;">
- <img align="right" src="/photo/[% report.id %].jpeg" hspace="5">
- [% loc("Thanks for uploading your photo. We now need to locate your problem, so please enter a nearby street name or postcode in the box below&nbsp;:") %]
- </p>
-[% END %]
-
-
+[% INCLUDE 'header.html', title => loc('Reporting a problem'), bodyclass = 'mappage' %]
+
+<form action="[% c.uri_for('/around') %]" method="get" name="mapForm" id="mapForm">
+ <div id="side-form">
+ <div id="report-a-problem-main">
+ [% INCLUDE 'around/postcode_form.html' %]
+
+ [% IF location_error %]
+ <p class="error">[% location_error %]</p>
+ [% END %]
+
+ [% IF possible_location_matches %]
+ <p>[% loc('We found more than one match for that location. We show up to ten matches, please try a different search if yours is not here.') %]</p>
+ <ul class="pc_alternatives">
+ [% FOREACH match IN possible_location_matches %]
+ <li><a href="/around?latitude=[% match.latitude | uri %];longitude=[% match.longitude | uri %]">[% match.address | html %]</a></li>
+ [% END %]
+ </ul>
+ [% END %]
+ </div>
+ </div>
+</form>
[% INCLUDE 'footer.html' %]
diff --git a/templates/web/default/around/display_location.html b/templates/web/default/around/display_location.html
index c9586c393..c8c6935de 100755
--- a/templates/web/default/around/display_location.html
+++ b/templates/web/default/around/display_location.html
@@ -29,9 +29,9 @@
PROCESS "maps/${map.type}.html";
+ SET rss = [ loc('Recent local problems, FixMyStreet'), rss_url ] IF c.cobrand.moniker != 'emptyhomes';
INCLUDE 'header.html',
title => loc('Viewing a location')
- rss => [ loc('Recent local problems, FixMyStreet'), rss_url ],
bodyclass => 'mappage',
robots => 'noindex,nofollow';
@@ -51,6 +51,7 @@
[% map_html %]
+ [% IF c.cobrand.moniker != 'emptyhomes' %]
<p id='sub_map_links'>
[% IF c.cobrand.moniker == 'zurich' %]
<a class="hidden-nojs" id="map_layer_toggle" href="">Stadtplan</a>
@@ -69,6 +70,7 @@
[% END %]
[% END %]
</p>
+ [% END %]
</div>
@@ -82,11 +84,13 @@
[% TRY %][% INCLUDE 'around/extra_text.html' %][% CATCH file %][% END %]
[% END %]
+ [% IF c.cobrand.moniker != 'emptyhomes' %]
[% INCLUDE 'around/_updates.html' %]
<section class="full-width">
[% INCLUDE "around/tabbed_lists.html" %]
</section>
+ [% END %]
</div>
[% IF allow_creation %]
diff --git a/templates/web/default/common_header_tags.html b/templates/web/default/common_header_tags.html
index 6582c19cc..346d53693 100644
--- a/templates/web/default/common_header_tags.html
+++ b/templates/web/default/common_header_tags.html
@@ -1,6 +1,7 @@
[% USE date %][% USE Math %]
<meta http-equiv="content-type" content="text/html; charset=utf-8">
+<script type="text/javascript" src="/js/validation_rules.js?[% Math.int( date.now / 3600 ) %]"></script>
<script type="text/javascript" src="/js/translation_strings.[% lang_code %].js?[% Math.int( date.now / 3600 ) %]"></script>
<script type="text/javascript" src="/jslib/jquery-1.7.2.min.js"></script>
diff --git a/templates/web/default/dashboard/index.html b/templates/web/default/dashboard/index.html
index b26bd48cd..f5a3cfba3 100644
--- a/templates/web/default/dashboard/index.html
+++ b/templates/web/default/dashboard/index.html
@@ -81,7 +81,7 @@
[%
rows = {
'0' => [ "in progress", "Council has marked as in progress" ]
- '1' => [ "planned", "Council has marked as planned" ]
+ '1' => [ "action scheduled", "Council has marked as planned" ]
'2' => [ "investigating", "Council has marked as investigating" ]
'3' => [ "closed", "Council has marked as closed" ]
};
@@ -98,10 +98,14 @@
<tr class='subtotal' id="marked">
<th scope="row">Total marked</th>
- <td>[% problems.wtd.${"in progress"} + problems.wtd.planned + problems.wtd.investigating + problems.wtd.closed %]</td>
- <td>[% problems.week.${"in progress"} + problems.week.planned + problems.week.investigating + problems.wtd.closed %]</td>
- <td>[% problems.weeks.${"in progress"} + problems.weeks.planned + problems.weeks.investigating + problems.wtd.closed %]</td>
- <td>[% problems.ytd.${"in progress"} + problems.ytd.planned + problems.ytd.investigating + problems.wtd.closed %]</td>
+ <td>[% problems.wtd.${"in progress"} + problems.wtd.${"action scheduled"} +
+ problems.wtd.investigating + problems.wtd.closed %]</td>
+ <td>[% problems.week.${"in progress"} + problems.week.${"action scheduled"} +
+ problems.week.investigating + problems.wtd.closed %]</td>
+ <td>[% problems.weeks.${"in progress"} + problems.weeks.${"action scheduled"} +
+ problems.weeks.investigating + problems.wtd.closed %]</td>
+ <td>[% problems.ytd.${"in progress"} + problems.ytd.${"action scheduled"} +
+ problems.ytd.investigating + problems.wtd.closed %]</td>
</tr>
<tr id="avg_fixed">
@@ -136,8 +140,8 @@
<p>Report state: <select name="state">
<option value=''>All</option>
[% FOREACH state IN [ ['confirmed', loc('Open')], ['investigating',
- loc('Investigating')], ['planned', loc('Planned')], ['in progress',
- loc('In progress')], ['closed', loc('Closed')], ['fixed', loc('Fixed')] ] %]
+ loc('Investigating')], ['action scheduled', loc('Planned')], ['in progress',
+ loc('In Progress')], ['closed', loc('Closed')], ['fixed', loc('Fixed')] ] %]
<option [% 'selected ' IF state.0 == q_state %] value="[% state.0 %]">[% state.1 %]</option>
[% END %]
</select>
diff --git a/templates/web/default/front/stats.html b/templates/web/default/front/stats.html
index 927ae4eb1..eae66018b 100644
--- a/templates/web/default/front/stats.html
+++ b/templates/web/default/front/stats.html
@@ -38,8 +38,8 @@
<div>[% tprintf( new_text, stats.new ) | comma %]</div>
[% IF c.cobrand.moniker != 'emptyhomes' %]
<div>[% tprintf( fixed_text, stats.fixed ) | comma %]</div>
- [% END %]
[% IF c.cobrand.moniker != 'zurich' %]
<div>[% tprintf( updates_text, stats.updates ) | comma %]</div>
[% END %]
+ [% END %]
</div>
diff --git a/templates/web/default/index-steps.html b/templates/web/default/index-steps.html
index 8a83abf07..6fae921b7 100644
--- a/templates/web/default/index-steps.html
+++ b/templates/web/default/index-steps.html
@@ -2,8 +2,23 @@
<ol class="big-numbers">
[% IF c.cobrand.moniker == 'fixmybarangay' %]
- <li>Text LUZ or BSN followed by your report to 12345</li>
- <li>Visit the Barangay Center in person</li>
+ <li>Text <span class="promo-big">FMB LUZ</span> or <span class="promo-big">FMB BSN</span> followed by your report to
+ <ul id="promo-list">
+ <li>
+ <span class="promo-bigger">391-FMB</span> (391362) SMART short code
+ </li>
+ <li>
+ <span class="promo-bigger">0908&nbsp;896&nbsp;8278</span> for all networks
+ </li>
+ </ul>
+ <div class="promo-example">
+ For example:<br/>
+ <div>
+ FMB LUZ Busted streetlamp, P. Cabantan St., Pole # 12345, near Sto. Antonio Chapel
+ </div>
+ </div>
+ </li>
+ <li>Or visit the Barangay Center in person</li>
<li>Staff? <a href="/auth">Sign in</a> and click on the map!
[% ELSE %]
<li>[% question %]</li>
diff --git a/templates/web/default/index.html b/templates/web/default/index.html
index 3cfc07591..beaeefb20 100644
--- a/templates/web/default/index.html
+++ b/templates/web/default/index.html
@@ -5,10 +5,13 @@
[% END %]
<p id="expl">
+ [% IF c.cobrand.moniker == 'emptyhomes' %]
+ <strong>[% loc('Report empty properties') %]</strong>
+ [% ELSE %]
[%
subhead
= c.cobrand.moniker == 'southampton'
- ? '(like graffiti, fly tipping, or broken paving slabs)'
+ ? ''
: loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)');
%]
@@ -17,6 +20,7 @@
[% IF subhead != ' ' %]
<small>[% subhead %]</small>
[% END %]
+ [% END %]
</p>
[% TRY %][% INCLUDE 'front/news.html' %][% CATCH file %][% END %]
diff --git a/templates/web/default/js/validation_rules.html b/templates/web/default/js/validation_rules.html
new file mode 100644
index 000000000..409d0971f
--- /dev/null
+++ b/templates/web/default/js/validation_rules.html
@@ -0,0 +1,7 @@
+ validation_rules = {
+ title: { required: true },
+ detail: { required: true },
+ email: { required: true },
+ update: { required: true },
+ rznvy: { required: true }
+ };
diff --git a/templates/web/default/questionnaire/index.html b/templates/web/default/questionnaire/index.html
index 5b48f8915..6783bca57 100644
--- a/templates/web/default/questionnaire/index.html
+++ b/templates/web/default/questionnaire/index.html
@@ -80,9 +80,13 @@ href="http://www.emptyhomes.com/getinvolved/campaign.html">http://www.emptyhomes
</p>
[% END %]
+[% IF c.cobrand.moniker == 'southampton' %]
+<p>Add a public update (please note it will not be sent to the council)</p>
+[% ELSE %]
<p>[% loc('If you wish to leave a public update on the problem, please enter it here
(please note it will not be sent to the council). For example, what was
your experience of getting the problem fixed?') %]</p>
+[% END %]
<p><textarea name="update" style="max-width:90%" rows="7" cols="30">[% update | html %]</textarea></p>
diff --git a/templates/web/default/report/_main.html b/templates/web/default/report/_main.html
index 9b637b83c..789f8e43e 100644
--- a/templates/web/default/report/_main.html
+++ b/templates/web/default/report/_main.html
@@ -3,7 +3,7 @@
<p><em>
[% problem.meta_line(c) | html %]
- [%- IF !problem.used_map %]; <strong>[% loc('there is no pin shown as the user did not use the map') %]</strong>[% END %]
+ [%- IF !problem.used_map AND c.cobrand.moniker != 'emptyhomes' %]; <strong>[% loc('there is no pin shown as the user did not use the map') %]</strong>[% END %]
[% IF problem.bodies_str %]
[% IF problem.whensent || problem.can_display_external_id %]
<small class="council_sent_info"><br>
diff --git a/templates/web/default/report/banner.html b/templates/web/default/report/banner.html
index 85aaed82d..52bfa6e67 100644
--- a/templates/web/default/report/banner.html
+++ b/templates/web/default/report/banner.html
@@ -14,7 +14,7 @@
[% IF problem.is_closed %]
[% INCLUDE banner, id = 'closed', text = loc('This problem has been closed') %]
[% END %]
-[% states = [ 'investigating', 'in progress', 'planned' ];
+[% states = [ 'investigating', 'in progress', 'planned', 'action scheduled' ];
IF states.grep(problem.state).size %]
[% INCLUDE banner, id = 'progress', text = loc('This problem is in progress') %]
[% END %]
diff --git a/templates/web/default/report/display.html b/templates/web/default/report/display.html
index 18b4bf51a..2ade45a8a 100644
--- a/templates/web/default/report/display.html
+++ b/templates/web/default/report/display.html
@@ -2,15 +2,18 @@
PROCESS "maps/${map.type}.html";
problem_title = problem.title _ ' - ' _ loc('Viewing a problem');
+ SET rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ] IF c.cobrand.moniker != 'emptyhomes';
+ SET robots = 'index, nofollow';
+ SET robots = 'noindex, nofollow' IF c.cobrand.moniker == 'emptyhomes';
INCLUDE 'header.html'
title = problem_title
- rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ]
- robots = 'index, nofollow'
%]
-[% map_html %]
+[% IF c.cobrand.moniker != 'emptyhomes' %]
+ [% map_html %]
+ </div>
+[% END %]
-</div>
<div id="side">
[% INCLUDE 'report/banner.html' %]
@@ -22,6 +25,7 @@
</small>
</p>
+[% IF c.cobrand.moniker != 'emptyhomes' %]
<p style="padding-bottom: 0.5em; border-bottom: dotted 1px #999999;" align="right">
<a href="[% c.uri_for( '/around', { lat => short_latitude, lon => short_longitude } ) %]">[% loc( 'More problems nearby' ) %]</a>
</p>
@@ -45,6 +49,7 @@
[% INCLUDE 'report/updates.html' %]
[% INCLUDE 'report/update-form.html' %]
+[% END %]
</div>
diff --git a/templates/web/default/report/new/category.html b/templates/web/default/report/new/category.html
index f2ef529f2..a701e0851 100644
--- a/templates/web/default/report/new/category.html
+++ b/templates/web/default/report/new/category.html
@@ -3,7 +3,7 @@
[% IF category;
category = category | lower;
END; %]
- <label for='form_category'>[% category_label | html %]</label>
+ <label for='form_category' id="form_category_label">[% category_label | html %]</label>
<select name='category' id='form_category'[% ' onchange="form_category_onchange()"' IF category_extras.size %]>
[% FOREACH cat_op IN category_options %]
[% cat_op_lc = cat_op | lower %]
diff --git a/templates/web/default/report/new/fill_in_details_form.html b/templates/web/default/report/new/fill_in_details_form.html
index 4af0baccd..5eff4e147 100644
--- a/templates/web/default/report/new/fill_in_details_form.html
+++ b/templates/web/default/report/new/fill_in_details_form.html
@@ -206,7 +206,7 @@
<div class="checkbox">
[%# if there is nothing in the name field then set check box as default on form %]
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1"[% ' checked' IF !report.anonymous %]>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1"[% ' checked' IF report.anonymous==0 OR (c.cobrand.default_show_name AND report.anonymous=='') %]>
<label for="form_may_show_name">[% loc('Show my name publicly') %]</label>
<br><small>[% loc('(we never show your email address or phone number)') %]</small>
</div>
diff --git a/templates/web/default/report/update-form.html b/templates/web/default/report/update-form.html
index eeaec7915..50bc2906c 100644
--- a/templates/web/default/report/update-form.html
+++ b/templates/web/default/report/update-form.html
@@ -28,8 +28,10 @@
<label for="form_state">[% loc( 'State:' ) %]</label>
<select name="state" id="form_state">
[% FOREACH state IN [ ['confirmed', loc('Open')], ['investigating',
- loc('Investigating')], ['planned', loc('Planned')], ['in progress',
- loc('In progress')], ['closed', loc('Closed')], ['fixed', loc('Fixed')] ] %]
+ loc('Investigating')], ['action scheduled', loc('Action Scheduled')],
+ ['in progress', loc('In Progress')], ['duplicate', loc('Duplicate')],
+ ['unable to fix', loc('Unable to fix')], ['not responsible', loc('Not Responsible')],
+ ['fixed', loc('Fixed')] ] %]
<option [% 'selected ' IF state.0 == problem.state %] value="[% state.0 %]">[% state.1 %]</option>
[% END %]
</select>
@@ -151,7 +153,7 @@
</div>
<div class="checkbox">
- <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1"[% ' checked' UNLESS update.anonymous %]>
+ <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1"[% ' checked' IF update.anonymous==0 OR (c.cobrand.default_show_name AND update.anonymous=='') %]>
<label for="form_may_show_name">[% loc('Show my name publicly') %]</label>
<small>[% loc('(we never show your email)') %]</small>
</div>
diff --git a/templates/web/default/report/updates.html b/templates/web/default/report/updates.html
index a892e0e69..04a8bec33 100644
--- a/templates/web/default/report/updates.html
+++ b/templates/web/default/report/updates.html
@@ -1,3 +1,4 @@
+[% global.last_state = '' %]
[% FOREACH update IN updates %]
[% INCLUDE 'report/update.html' %]
[% END %]
@@ -22,8 +23,20 @@
[%- ELSE %]
[% tprintf( loc( 'Posted by %s at %s' ), update.name, prettify_dt( update.confirmed_local ) ) | html -%]
[%- END -%]
- [%- ", " _ loc( 'marked as fixed' ) IF update.mark_fixed %]
- [%- ", " _ loc( 'reopened' ) IF update.mark_open OR update.problem_state == 'confirmed' %]
- [%- ", " _ tprintf(loc( 'marked as %s' ), update.meta_problem_state) IF update.problem_state AND update.problem_state != 'confirmed' %]
+ [%- update_state = '' %]
+ [%- 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 update.user.council == 'Bromley Council' ) AND update.problem_state == 'unable to fix' %]
+ [%- state = loc('no further action') %]
+ [% 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 %]
+ [%- END %]
+ [%- update_state IF update_state != global.last_state %]
+ [%- global.last_state = update_state %]
[% END %]
-
diff --git a/templates/web/default/report_created.html b/templates/web/default/report_created.html
new file mode 100644
index 000000000..81083654b
--- /dev/null
+++ b/templates/web/default/report_created.html
@@ -0,0 +1,9 @@
+[% INCLUDE 'header.html', title => loc('Report created') %]
+
+<h1>[% loc("Report created") %]</h1>
+
+<p>
+[% loc('Your report has been created and will shortly be sent.') %]
+</p>
+
+[% INCLUDE 'footer.html' %]
diff --git a/templates/web/default/reports/body.html b/templates/web/default/reports/body.html
index 284915571..da184c6e9 100755
--- a/templates/web/default/reports/body.html
+++ b/templates/web/default/reports/body.html
@@ -1,9 +1,3 @@
-[% IF c.cobrand.moniker == 'fixmystreet' OR c.cobrand.moniker == 'bromley';
- style = 'new';
- ELSE;
- style = 'old';
- END;
-%]
[% IF ward %]
[% name = "$ward.name, $body.name"
thing = loc('ward')
@@ -24,7 +18,6 @@
PROCESS "maps/${map.type}.html";
INCLUDE 'header.html',
title = tprintf(loc('%s - Summary reports'), name)
- context = 'reports'
bodyclass = 'mappage'
rss = [ tprintf(loc('Problems within %s, FixMyStreet'), name), rss_url ]
%]