diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/admin/body.html | 10 | ||||
-rw-r--r-- | templates/web/base/admin/category_edit.html | 2 | ||||
-rw-r--r-- | templates/web/base/report/_inspect.html | 11 |
3 files changed, 23 insertions, 0 deletions
diff --git a/templates/web/base/admin/body.html b/templates/web/base/admin/body.html index a00c5ca4c..6d23c1458 100644 --- a/templates/web/base/admin/body.html +++ b/templates/web/base/admin/body.html @@ -204,6 +204,16 @@ <label for="non_public" class="inline">[% loc('Private') %]</label> </p> + <div class="admin-hint"> + <p> + [% loc("Check <strong>inspection required</strong> if reports in this category <strong>must be inspected</strong> before being sent.") %] + </p> + </div> + <p> + <input type="checkbox" name="inspection_required" value="1" id="inspection_required" [% 'checked' IF contact.get_extra_metadata('inspection_required') %]> + <label for="inspection_required" class="inline">[% loc('Inspection required') %]</label> + </p> + <p> <input type="hidden" name="posted" value="new" > <input type="hidden" name="token" value="[% csrf_token %]" > diff --git a/templates/web/base/admin/category_edit.html b/templates/web/base/admin/category_edit.html index 6537fe028..cdf371643 100644 --- a/templates/web/base/admin/category_edit.html +++ b/templates/web/base/admin/category_edit.html @@ -43,6 +43,8 @@ [% IF c.cobrand.moniker != 'zurich' %] <input type="checkbox" name="non_public" value="1" id="non_public"[% ' checked' IF contact.non_public %]> <label class="inline" for="non_public">[% loc('Private') %]</label> + <input type="checkbox" name="inspection_required" value="1" id="inspection_required"[% ' checked' IF contact.get_extra_metadata('inspection_required') %]> + <label class="inline" for="inspection_required">[% loc('Inspection required') %]</label> [% ELSE %] <input type="checkbox" name="photo_required" value="1" id="photo_required"[% ' checked' IF contact.get_extra_metadata('photo_required') %]> <label class="inline" for="photo_required">[% loc('Photo required') %]</label> 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> |