diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2018-08-02 14:33:02 +0100 |
---|---|---|
committer | Zarino Zappia <mail@zarino.co.uk> | 2018-08-07 16:48:59 +0100 |
commit | 97820fbc232aba7447a3e58e3fd9f8f67ac46702 (patch) | |
tree | d09e1e1b5f7ea7f1c253d8a9fc8a0c377ec9c471 | |
parent | c1f234d45ec4d9530973e75a8d994dd8c96a129c (diff) |
"Report another problem here" button on confirmation page
Part of #2012.
Should make it much quicker to report multiple problems in the same
location, one after the other.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | templates/web/base/tokens/confirm_problem.html | 6 | ||||
-rw-r--r-- | web/cobrands/sass/_base.scss | 6 |
3 files changed, 13 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 97b7386d1..bcc6ae735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Only display last 6 months of reports on around page by default #2098 - Always show all reports by default on /my. - Much less reliance on input placeholders, for better accessibility #2180 + - “Report another problem here” button on report confirmation page #2198 - Admin improvements: - Mandatory defect type selection if defect raised. - Send login email button on user edit page #2041 diff --git a/templates/web/base/tokens/confirm_problem.html b/templates/web/base/tokens/confirm_problem.html index ff9882d4b..57ba42a54 100644 --- a/templates/web/base/tokens/confirm_problem.html +++ b/templates/web/base/tokens/confirm_problem.html @@ -31,6 +31,12 @@ [% TRY %][% INCLUDE 'tokens/_extras_confirm.html' %][% CATCH file %][% END %] + <p class="confirmation-again"> + <a href="/report/new?latitude=[% report.latitude %]&longitude=[% report.longitude %]" class="btn btn-primary"> + [% loc('Report another problem here') %] + </a> + </p> + </div> [% INCLUDE diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 4d7ff2c37..00e2df7d7 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -2160,6 +2160,12 @@ a#geolocate_link.loading, .btn--geolocate.loading { } } +.confirmation-again { + margin-top: 2em; + color: inherit; + font-size: 1em; +} + /* Questionnaire page */ .questionnaire-report-header { |