diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-22 14:05:30 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-28 13:17:30 +0100 |
commit | 2d916ec746f5d7091bb98890bf035ab1c0f14443 (patch) | |
tree | 48e5bc06d32cffbd47180097ea93a1831ee7c1d2 /templates | |
parent | 60629c93d6f6ebb48ba00e16abffd8df4df79abe (diff) |
Refactor together similar moderate functions.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/_main.html | 2 | ||||
-rw-r--r-- | templates/web/base/report/update.html | 6 |
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 %] |