diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/zurich/admin/header.html | 14 | ||||
-rw-r--r-- | templates/web/zurich/admin/index-dm.html | 6 | ||||
-rw-r--r-- | templates/web/zurich/admin/index.html | 3 | ||||
-rw-r--r-- | templates/web/zurich/admin/problem_row.html | 5 | ||||
-rw-r--r-- | templates/web/zurich/admin/report_edit-sdm.html | 2 | ||||
-rw-r--r-- | templates/web/zurich/admin/report_edit.html | 19 | ||||
-rw-r--r-- | templates/web/zurich/report/_item.html | 4 | ||||
-rw-r--r-- | templates/web/zurich/report/_main.html | 2 |
8 files changed, 21 insertions, 34 deletions
diff --git a/templates/web/zurich/admin/header.html b/templates/web/zurich/admin/header.html index 40847f190..91ac24faa 100644 --- a/templates/web/zurich/admin/header.html +++ b/templates/web/zurich/admin/header.html @@ -1,20 +1,6 @@ [% SET bodyclass = bodyclass || 'fullwidthpage'; INCLUDE 'header.html' admin = 1, bodyclass = bodyclass _ ' admin'; - - states = { - 'unconfirmed' = loc('Submitted'), - 'confirmed' = loc('Open'), - 'in progress' = loc('In progress'), - 'planned' = loc('Planned'), - 'fixed - council' = loc('Closed'), - 'hidden' = loc('Hidden'), - 'closed' = loc('Extern'), - 'partial' = loc('Not contactable'), - 'investigating' = loc('Wish'), - 'unable to fix' = loc('Jurisdiction unknown'), - 'fixed - council' = loc('Closed'), - } %] <style type="text/css"> .adminhidden { color: #666666; } diff --git a/templates/web/zurich/admin/index-dm.html b/templates/web/zurich/admin/index-dm.html index e0b62d5d2..4d77cf264 100644 --- a/templates/web/zurich/admin/index-dm.html +++ b/templates/web/zurich/admin/index-dm.html @@ -4,10 +4,10 @@ [% status_message %] <h2 id="submitted">[% loc('Submitted') %]</h2> -[% INCLUDE list, problems = unconfirmed.all, hash = 'submitted' %] +[% INCLUDE list, problems = submitted.all, hash = 'submitted' %] -<h2 id="planned">[% loc('Planned') %]</h2> -[% INCLUDE list, problems = approval.all, hash = 'planned' %] +<h2 id="feedback_pending">Rückmeldung ausstehend</h2> +[% INCLUDE list, problems = approval.all, hash = 'feedback_pending' %] <h2 id="alle">[% loc('All reports') %]</h2> [% INCLUDE list, problems = other.all, include_subdiv = 1, hash = 'alle' %] diff --git a/templates/web/zurich/admin/index.html b/templates/web/zurich/admin/index.html index fb3609bb3..62cd1a52c 100644 --- a/templates/web/zurich/admin/index.html +++ b/templates/web/zurich/admin/index.html @@ -9,8 +9,7 @@ <h2>[% loc('Problem breakdown by state') %]</h2> <ul> [% FOREACH state IN problems.keys.sort %] - [% NEXT IF NOT states.$state %] - <li>[% problems.$state %] [% states.$state %]</li> + <li>[% problems.$state %] [% prettify_state(state) %]</li> [% END %] </ul> diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html index a83e22b27..973d9f651 100644 --- a/templates/web/zurich/admin/problem_row.html +++ b/templates/web/zurich/admin/problem_row.html @@ -18,9 +18,10 @@ <td>[% PROCESS value_or_nbsp value=problem.category_display %]</td> <td>[% PROCESS format_date this_date=problem.created %]</td> <td>[% PROCESS format_date this_date=problem.lastupdate %]</td> - <td> [% states.${problem.state} %][% IF problem.state == 'planned'; + <td>[% prettify_state(problem.state) %] + [% IF problem.state == 'feedback pending'; SET cs=problem.get_extra_metadata('closure_status'); - IF cs %] ([% states.$cs %]) [% END; END %]</td> + IF cs %] ([% prettify_state(cs) %]) [% END; END %]</td> [% IF include_subdiv %] <td> diff --git a/templates/web/zurich/admin/report_edit-sdm.html b/templates/web/zurich/admin/report_edit-sdm.html index 2cbc262ae..d07629d01 100644 --- a/templates/web/zurich/admin/report_edit-sdm.html +++ b/templates/web/zurich/admin/report_edit-sdm.html @@ -73,7 +73,7 @@ <dd>[% problem.category_display | html %]</dd> <dt class="print-only">[% loc('State:') %] <!-- Status --></dt> - <dd class="print-only">[% states.${problem.state} %]</dd> + <dd class="print-only">[% prettify_state(problem.state) %]</dd> <dt>[% loc('Time spent (in minutes):') %]</dt> <dd>[% problem.get_time_spent %]</dd> diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html index 79d04d36b..ad14b2d45 100644 --- a/templates/web/zurich/admin/report_edit.html +++ b/templates/web/zurich/admin/report_edit.html @@ -27,7 +27,7 @@ <dd class="screen-only">» <a href="http://webgis.intra.stzh.ch/stapo/GoogleStreetView.asp?lat=[% problem.latitude %]&lon=[% problem.longitude %]" target="_blank">[% loc('Street View') %]</a></dd> - [% IF c.cobrand.problem_is_closed(problem) %] + [% IF problem.is_fixed || problem.is_closed || problem.is_hidden %] <dt><span class="mock-label">[% loc('Details:') %]</span></dt> <dd>[% problem.detail | html %]</dd> [% IF problem.extra.original_detail %] @@ -101,7 +101,7 @@ <dd>[% problem.category_display | html %]</dd> <dt class="print-only">[% loc('State:') %] <!-- Status --></dt> - <dd class="print-only">[% states_trans.${problem.state} %]</dd> + <dd class="print-only">[% prettify_state(problem.state) %]</dd> <dt>[% loc('Time spent (in minutes):') %]</dt> <dd>[% problem.get_time_spent %]</dd> @@ -154,7 +154,8 @@ <select class="form-control" name="state" id="state" data-pstate="[% pstate %]"> <option value="">--</option> [% FOREACH s IN states %] - <option [% 'selected ' IF s.state == pstate %] value="[% s.state %]">[% s.trans %]</option> + <option [% 'selected ' IF s.state == pstate %] value="[% s.state %]"> + [% IF s.trans; s.trans; ELSE; prettify_state(s.state); END %]</option> [% END %] </select> </dd> @@ -196,15 +197,15 @@ </ul> -[% IF problem.state == 'planned' %] +[% IF problem.state == 'feedback pending' %] [%# 3rd party messages sent for Extern/Wunsch states %] [% SWITCH pstate %] - [% CASE ['closed','investigating'] %] + [% CASE ['external','wish'] %] <ul class="no-bullets screen-only"> <li class="assignation" id="assignation__external"> <span class="error hidden">[% loc('Please select a body.') %]</span> <label for="body_external"> - [% IF pstate == 'closed' %] + [% IF pstate == 'external' %] [% loc('Assign to external body:') %] [% ELSE %] [% loc('Assign to competent body:') %] @@ -219,7 +220,7 @@ </select> </li> <li> - [% IF pstate == 'closed' %] + [% IF pstate == 'external' %] <input type="checkbox" name="third_personal" id="third_personal" value="1"[% ' checked' IF problem.extra.third_personal %]> <label for="third_personal" class="inline">[% loc('Include reporter personal details') %]</label> [% END %] @@ -272,9 +273,9 @@ [% END %] [% SWITCH problem.state %] - [% CASE ['closed','investigating'] %] + [% CASE ['external','wish'] %] <h2> - [% IF problem.state == 'closed' %] + [% IF problem.state == 'external' %] [% loc('Message to external body:') %] [% ELSE %] [% loc('Message to competent body:') %] diff --git a/templates/web/zurich/report/_item.html b/templates/web/zurich/report/_item.html index ccae84271..f20b2021d 100644 --- a/templates/web/zurich/report/_item.html +++ b/templates/web/zurich/report/_item.html @@ -1,11 +1,11 @@ <li class="item-list__item item-list--reports__item"> <a href="[% c.uri_for('/report', problem.id ) %]"> [% photo_to_display = c.cobrand.allow_photo_display(problem) %] - [% IF problem.state != 'unconfirmed' AND problem.photo AND photo_to_display %] + [% IF problem.state != 'submitted' AND problem.photo AND photo_to_display %] [% photo_idx = photo_to_display - 1 ~%] <img class="img" height="60" width="90" src="[% problem.photos.${photo_idx}.url_fp %]" alt=""> [% END %] - [% IF problem.state != 'unconfirmed' %] + [% IF problem.state != 'submitted' %] <h3 class="item-list__heading">[% problem.title | html %]</h3> [% ELSE %] <h3 class="item-list__heading"><em>[% loc('Awaiting moderation') %]</em></h3> diff --git a/templates/web/zurich/report/_main.html b/templates/web/zurich/report/_main.html index 912e8b0c9..c9225b4aa 100644 --- a/templates/web/zurich/report/_main.html +++ b/templates/web/zurich/report/_main.html @@ -5,7 +5,7 @@ [%- IF !problem.used_map %]<br>[% loc('there is no pin shown as the user did not use the map') %][% END %] </p> - [% IF problem.state != 'unconfirmed' %] + [% IF problem.state != 'submitted' %] [% INCLUDE 'report/photo.html' object=problem %] [% problem.detail | add_links | html_para %] [% ELSE %] |