aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base')
-rw-r--r--templates/web/base/admin/body-form.html2
-rw-r--r--templates/web/base/admin/body.html2
-rw-r--r--templates/web/base/admin/category_edit.html14
-rw-r--r--templates/web/base/admin/reports.html3
-rw-r--r--templates/web/base/admin/user-form.html8
-rw-r--r--templates/web/base/admin/users.html3
-rw-r--r--templates/web/base/questionnaire/index.html10
-rw-r--r--templates/web/base/report/_main.html2
-rw-r--r--templates/web/base/report/display_tools.html4
-rw-r--r--templates/web/base/report/update.html2
-rw-r--r--templates/web/base/report/update/form_user_loggedout_email.html2
11 files changed, 37 insertions, 15 deletions
diff --git a/templates/web/base/admin/body-form.html b/templates/web/base/admin/body-form.html
index 303afb682..6dd8a9547 100644
--- a/templates/web/base/admin/body-form.html
+++ b/templates/web/base/admin/body-form.html
@@ -189,7 +189,7 @@
</div>
<p>
<label for"comment_user_id">User ID to attribute fetched comments to</label>
- <input type="text" name="comment_user_id" value="[% body.comment_user_id %]">
+ <input type="text" class="form-control" name="comment_user_id" value="[% body.comment_user_id %]">
[% IF body.comment_user_id %]
<a href="[% c.uri_for('user_edit', body.comment_user_id) %]">[% loc('edit user') %]</a>
[% END %]
diff --git a/templates/web/base/admin/body.html b/templates/web/base/admin/body.html
index 065cafe2d..52df20c89 100644
--- a/templates/web/base/admin/body.html
+++ b/templates/web/base/admin/body.html
@@ -185,7 +185,7 @@
</p>
</div>
<p>
- <strong>[% loc('Note:') %] </strong> <textarea name="note" rows="3" cols="40"></textarea>
+ <strong>[% loc('Note:') %] </strong> <textarea class="form-control" name="note" rows="3" cols="40"></textarea>
</p>
<div class="admin-hint">
diff --git a/templates/web/base/admin/category_edit.html b/templates/web/base/admin/category_edit.html
index 7fe1a10d3..ebaa495db 100644
--- a/templates/web/base/admin/category_edit.html
+++ b/templates/web/base/admin/category_edit.html
@@ -19,7 +19,7 @@
[% END %]
</p>
-<form method="post" action="[% c.uri_for('body', body_id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
+<form method="post" action="[% c.uri_for('body', body_id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8" id="category_edit">
<p><strong>[% loc('Category:') %] </strong>[% contact.category | html %]
<input type="hidden" name="category" value="[% contact.category | html %]" >
<input type="hidden" name="token" value="[% csrf_token %]" >
@@ -47,7 +47,17 @@
[% END %]
</p>
- <p><strong>[% loc('Note:') %] </strong><textarea name="note" rows="3" cols="40"></textarea>
+ [% IF c.cobrand.moniker != 'zurich' %]
+ <p [% 'class=hidden' UNLESS contact.get_extra_metadata('inspection_required') %]>
+ <label>
+ [% loc('Reputation threshold:') %]
+ <input type="text" class="form-control" name="reputation_threshold" id="reputation_threshold"
+ value="[% contact.get_extra_metadata('reputation_threshold') | html %]" size="30">
+ </label>
+ </p>
+ [% END %]
+
+ <p><strong>[% loc('Note:') %] </strong><textarea class="form-control" name="note" rows="3" cols="40"></textarea>
[% IF body.can_be_devolved %]
<h2>[% loc('Configure Endpoint') %]</h2>
diff --git a/templates/web/base/admin/reports.html b/templates/web/base/admin/reports.html
index 071c5f5a5..7d8fe9561 100644
--- a/templates/web/base/admin/reports.html
+++ b/templates/web/base/admin/reports.html
@@ -2,7 +2,8 @@
[% PROCESS 'admin/report_blocks.html' %]
<form method="get" action="[% c.uri_for('reports') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
- <p><label for="search">[% loc('Search:') %]</label> <input type="text" name="search" size="30" id="search" value="[% searched | html %]">
+ <p><label for="search">[% loc('Search:') %]</label>
+ <input class="form-control" type="text" name="search" size="30" id="search" value="[% searched | html %]">
</form>
[% IF problems.size %]
diff --git a/templates/web/base/admin/user-form.html b/templates/web/base/admin/user-form.html
index 1dfd35cee..5adc200a1 100644
--- a/templates/web/base/admin/user-form.html
+++ b/templates/web/base/admin/user-form.html
@@ -110,6 +110,14 @@
</label>
[% END %]
</li>
+ <li>
+ <div class="admin-hint">
+ <p>
+ [% loc("Reports from users with high enough reputation will be sent immediately without requiring inspection. Each category's threshold can be managed on its edit page. Users earn reputation when a report they have made is marked as inspected by inspectors.") %]
+ </p>
+ </div>
+ [% loc('Reputation:') %] [% user.get_extra_metadata('reputation') %]
+ </li>
[% END %]
[% IF c.user.is_superuser %]
diff --git a/templates/web/base/admin/users.html b/templates/web/base/admin/users.html
index dfff77ee6..757046bcf 100644
--- a/templates/web/base/admin/users.html
+++ b/templates/web/base/admin/users.html
@@ -5,7 +5,8 @@
[% loc("User search finds matches in users' names and email addresses.") %]
</div>
<form method="get" action="[% c.uri_for('users') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
- <p><label for="search">[% loc('Search:') %]</label> <input type="text" name="search" size="30" id="search" value="[% searched | html %]">
+ <p><label for="search">[% loc('Search:') %]</label>
+ <input class="form-control" type="text" name="search" size="30" id="search" value="[% searched | html %]">
</form>
[% IF users.size %]
diff --git a/templates/web/base/questionnaire/index.html b/templates/web/base/questionnaire/index.html
index 5e6cef3b7..8639a436f 100644
--- a/templates/web/base/questionnaire/index.html
+++ b/templates/web/base/questionnaire/index.html
@@ -50,20 +50,20 @@
<p class="segmented-control segmented-control--radio">
<input type="radio" name="been_fixed" id="been_fixed_yes" value="Yes"[% ' checked' IF been_fixed == 'Yes' %]>
- <label for="been_fixed_yes">[% loc('Yes') %]</label>
+ <label class="btn" for="been_fixed_yes">[% loc('Yes') %]</label>
<input type="radio" name="been_fixed" id="been_fixed_no" value="No"[% ' checked' IF been_fixed == 'No' %]>
- <label for="been_fixed_no">[% loc('No') %]</label>
+ <label class="btn" for="been_fixed_no">[% loc('No') %]</label>
<input type="radio" name="been_fixed" id="been_fixed_unknown" value="Unknown"[% ' checked' IF been_fixed == 'Unknown' %]>
- <label for="been_fixed_unknown">[% loc('Don&rsquo;t know') %]</label>
+ <label class="btn" for="been_fixed_unknown">[% loc('Don&rsquo;t know') %]</label>
</p>
[% UNLESS answered_ever_reported %]
<p>[% loc('Have you ever reported a problem to a council before, or is this your first time?') %]</p>
<p class="segmented-control segmented-control--radio">
<input type="radio" name="reported" id="reported_yes" value="Yes"[% ' checked' IF reported == 'Yes' %]>
- <label for="reported_yes">[% loc('Reported before') %]</label>
+ <label class="btn" for="reported_yes">[% loc('Reported before') %]</label>
<input type="radio" name="reported" id="reported_no" value="No"[% ' checked' IF reported == 'No' %]>
- <label for="reported_no">[% loc('First time') %]</label>
+ <label class="btn" for="reported_no">[% loc('First time') %]</label>
</p>
[% END %]
diff --git a/templates/web/base/report/_main.html b/templates/web/base/report/_main.html
index 20982c30c..469ee5bc5 100644
--- a/templates/web/base/report/_main.html
+++ b/templates/web/base/report/_main.html
@@ -126,7 +126,7 @@
%]
<div class="moderate-display segmented-control" role="menu">
[% IF permissions.moderate %]
- <a class="btn" id="moderate-report" role="menuitem" aria-label="[% loc('Moderate this report') %]">[% loc('Moderate') %]</a>
+ <a class="js-moderate btn" role="menuitem" aria-label="[% loc('Moderate this report') %]">[% loc('Moderate') %]</a>
[% END %]
[% IF !hide_inspect_button AND permissions.keys.grep('report_inspect|report_edit_category|report_edit_priority').size %]
<a class="btn" href="/report/[% problem.id %]/inspect#side-inspect" role="menuitem">
diff --git a/templates/web/base/report/display_tools.html b/templates/web/base/report/display_tools.html
index 5279829e9..f27ed8da5 100644
--- a/templates/web/base/report/display_tools.html
+++ b/templates/web/base/report/display_tools.html
@@ -3,7 +3,7 @@
[% IF c.user_exists AND c.cobrand.users_can_hide AND c.user.belongs_to_body( problem.bodies_str ) %]
<li><form method="post" action="/report/delete/[% problem.id %]" id="remove-from-site-form">
<input type="hidden" name="token" value="[% csrf_token %]">
- <input type="submit" id="key-tool-report-abuse" class="abuse btn" data-confirm="[% loc('Are you sure?') %]" value="[% loc('Remove from site') %]">
+ <input type="submit" id="key-tool-report-abuse" class="abuse btn" data-confirm="[% loc('Are you sure?') %]" name="remove_from_site" value="[% loc('Remove from site') %]">
</form></li>
[% ELSIF c.cobrand.moniker != 'zurich' %]
<li><a rel="nofollow" id="key-tool-report-abuse" class="abuse" href="[% c.uri_for( '/contact', { id => problem.id } ) %]">[% loc('Report abuse' ) %]</a></li>
@@ -43,7 +43,9 @@
<fieldset>
<label class="hidden n" for="alert_rznvy">[% loc('Your email') %]</label>
<div class="form-txt-submit-box">
+ [% IF NOT c.user_exists %]
<input type="email" class="form-control" name="rznvy" id="alert_rznvy" value="[% email | html %]" size="30" placeholder="[% loc('Your email') %]">
+ [% END %]
<input class="green-btn" type="submit" value="[% loc('Subscribe') %]">
</div>
<input type="hidden" name="token" value="[% csrf_token %]">
diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html
index 0c85c132b..7c2c39eb2 100644
--- a/templates/web/base/report/update.html
+++ b/templates/web/base/report/update.html
@@ -9,7 +9,7 @@
[% IF moderating; original_update = update.moderation_original_data %]
<form method="post" action="/moderate/report/[% problem.id %]/update/[% update.id %]">
<input type="hidden" name="token" value="[% csrf_token %]">
- <input type="button" class="btn moderate moderate-display" value="Moderate this update">
+ <input type="button" class="btn js-moderate moderate-display" value="Moderate this update">
<div class="moderate-edit">
<label><input type="checkbox" class="hide-document" name="update_hide">
Hide update completely?</label>
diff --git a/templates/web/base/report/update/form_user_loggedout_email.html b/templates/web/base/report/update/form_user_loggedout_email.html
index 38f172148..ccea2de02 100644
--- a/templates/web/base/report/update/form_user_loggedout_email.html
+++ b/templates/web/base/report/update/form_user_loggedout_email.html
@@ -4,4 +4,4 @@
[% END %]
<input type="email" name="rznvy" id="form_rznvy" value="[% update.user.email | html %]" placeholder="[% loc('Your email address' ) %]"
[% IF required %]required[% END %]
- class="required">
+ class="form-control required">