aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-01 15:54:30 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:48:12 +0000
commit534bb6f75db411b56a7d9c3e7c7b91b4480c6999 (patch)
tree1d0921ce202b83975b79cf8a95941dbb24a6f054
parent267daf9db1e479eb929d83655c2ce91c95ff8c07 (diff)
[TfL] Disable fix/reopen update checkbox.
-rw-r--r--templates/web/fixmystreet.com/report/update/form_state_checkbox.html19
-rw-r--r--templates/web/tfl/report/update/form_state_checkbox.html0
2 files changed, 19 insertions, 0 deletions
diff --git a/templates/web/fixmystreet.com/report/update/form_state_checkbox.html b/templates/web/fixmystreet.com/report/update/form_state_checkbox.html
new file mode 100644
index 000000000..16ae59bc8
--- /dev/null
+++ b/templates/web/fixmystreet.com/report/update/form_state_checkbox.html
@@ -0,0 +1,19 @@
+[% RETURN IF problem.to_body_named('TfL') OR problem.to_body_named('Hounslow') %]
+
+[% IF (problem.is_fixed OR problem.is_closed) AND ((c.user_exists AND c.user.id == problem.user_id) OR alert_to_reporter) %]
+
+ <input type="checkbox" name="reopen" id="form_reopen" value="1"[% ' checked' IF (update.mark_open || c.req.params.reopen) %]>
+ [% IF problem.is_closed %]
+ <label class="inline" for="form_reopen">[% loc('This problem is still ongoing') %]</label>
+ [% ELSE %]
+ <label class="inline" for="form_reopen">[% loc('This problem has not been fixed') %]</label>
+ [% END %]
+
+[% ELSIF !problem.is_fixed AND has_fixed_state %]
+
+ <div class="checkbox-group">
+ <input type="checkbox" name="fixed" id="form_fixed" value="1"[% ' checked' IF update.mark_fixed %]>
+ <label class="inline" for="form_fixed">[% loc('This problem has been fixed') %]</label>
+ </div>
+
+[% END %]
diff --git a/templates/web/tfl/report/update/form_state_checkbox.html b/templates/web/tfl/report/update/form_state_checkbox.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/tfl/report/update/form_state_checkbox.html