aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2018-04-05 17:53:51 +0100
committerStruan Donald <struan@exo.org.uk>2018-04-11 10:42:52 +0100
commitdfc361813c6a7412d70b8782e29e712b4f06bba2 (patch)
tree79313b81a225295771862837722246afe3c78b48 /templates
parent80754df967ceee0180679ffcdde55d22aad4ac21 (diff)
admin UI to configure fetch_all_problems Open311 option
UI to update the fetch_all_problems setting in extra for a body. This also adds handling for extra body values in the Admin in a similar manner to the way other body params are handled.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/admin/open311-form-fields.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/web/base/admin/open311-form-fields.html b/templates/web/base/admin/open311-form-fields.html
index 50436fc79..b716cf175 100644
--- a/templates/web/base/admin/open311-form-fields.html
+++ b/templates/web/base/admin/open311-form-fields.html
@@ -150,6 +150,20 @@
<input type="checkbox" id="convert_latlong" name="convert_latlong"[% ' checked' IF object.convert_latlong %]>
<label for="convert_latlong" class="inline">[% loc('Convert location from Easting/Northing') %]</label>
</p>
+
+ <div class="admin-hint">
+ <p>
+ [% loc(
+ "Enable <strong>Always fetch all problems</strong> if you've enabled Open311 problem-fetching above
+ and the endpoint always returns a list of all problems. This will suppress error messages about
+ bad dates in the problems fetched."
+ ) %]
+ </p>
+ </div>
+ <p>
+ <input type="checkbox" id="fetch_all_problems" name="fetch_all_problems"[% ' checked' IF object.get_extra_metadata('fetch_all_problems') %]>
+ <label for="fetch_all_problems" class="inline">[% loc('Always fetch all problems') %]</label>
+ </p>
</div>
[% END %]
</div>