diff options
author | Dave Arter <davea@mysociety.org> | 2016-08-30 18:48:07 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-09-09 12:01:45 +0100 |
commit | 638c5d3be601c3949f1d1ce7ecae5d8b77ad8f7c (patch) | |
tree | 064a223fdcc62298dfb3f88858ddbd53084d2e65 /templates/web/base/report/_inspect.html | |
parent | 3f55b249eb6dfe46fa3f6855d90510ff2d4900e9 (diff) |
Add ‘Inspection required’ field to categories
Categories can now require reports to be marked as 'inspected' via the frontend
before they're sent by send-reports.
A side-effect here is that send-reports will perform an extra n queries for each
report, where n is the number of bodies that report is being sent to, but
hopefully in practice this won't matter as it's an offline cronjob.
See mysociety/fixmystreetforcouncils#50
Diffstat (limited to 'templates/web/base/report/_inspect.html')
-rw-r--r-- | templates/web/base/report/_inspect.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html index 6f81cc04a..188816ec1 100644 --- a/templates/web/base/report/_inspect.html +++ b/templates/web/base/report/_inspect.html @@ -76,6 +76,17 @@ <a href="[% c.uri_for( '/report', problem.id ) %]" class="btn">[% loc('Cancel') %]</a> <input type="submit" value="[% loc('Save changes') %]" name="save" /> </p> + <p> + [% UNLESS problem.get_extra_metadata('inspected') %] + <input type="submit" value="[% loc('Save changes + send') %]" name="save_inspected" /> + [% ELSE %] + [% IF problem.whensent %] + [% loc("<strong>Note:</strong> This report has been sent onwards for action. Any changes made won't be passed on.") %] + [% ELSE %] + [% loc("<strong>Note:</strong> This report hasn't yet been sent onwards for action. Any changes made may not be passed on.") %] + [% END %] + [% END %] + </p> </form> </div> </div> |