aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-08-22 14:05:30 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-08-28 13:17:30 +0100
commit2d916ec746f5d7091bb98890bf035ab1c0f14443 (patch)
tree48e5bc06d32cffbd47180097ea93a1831ee7c1d2 /templates
parent60629c93d6f6ebb48ba00e16abffd8df4df79abe (diff)
Refactor together similar moderate functions.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/report/_main.html2
-rw-r--r--templates/web/base/report/update.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/web/base/report/_main.html b/templates/web/base/report/_main.html
index fe0fe74d5..1c63cb53c 100644
--- a/templates/web/base/report/_main.html
+++ b/templates/web/base/report/_main.html
@@ -75,7 +75,7 @@
[% IF problem.photo or original.photo %]
<p class="moderate-edit">
<label>
- <input type="checkbox" name="problem_show_photo" [% problem.photo ? 'checked' : '' %]>
+ <input type="checkbox" name="problem_photo" [% problem.photo ? 'checked' : '' %]>
[% loc('Show photo') %]
</label>
</p>
diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html
index 4a2642c9a..1d6fb9c01 100644
--- a/templates/web/base/report/update.html
+++ b/templates/web/base/report/update.html
@@ -15,7 +15,7 @@
<label><input type="checkbox" name="update_show_name" [% update.anonymous ? '' : 'checked' %]>
[% loc('Show name publicly?') %]</label>
[% IF update.photo or original_update.photo %]
- <label><input type="checkbox" name="update_show_photo" [% update.photo ? 'checked' : '' %]>
+ <label><input type="checkbox" name="update_photo" [% update.photo ? 'checked' : '' %]>
[% loc('Show Photo?') %]</label>
[% END %]
</div>
@@ -34,10 +34,10 @@
[% IF permissions.moderate %]
<div class="moderate-edit">
[% IF update.text != original.detail %]
- <label><input type="checkbox" name="update_revert_detail" class="revert-textarea">
+ <label><input type="checkbox" name="update_revert_text" class="revert-textarea">
[% loc('Revert to original') %]</label>
[% END %]
- <textarea class="form-control" name="update_detail">[% update.text | add_links %]</textarea>
+ <textarea class="form-control" name="update_text">[% update.text | add_links %]</textarea>
</div>
[% END %]