| Commit message (Collapse) | Author | Age | Lines |
... | |
| |
|
| |
|
| |
|
|\ \ \
| | | |
| | | |
| | | | |
'2469-fancy-admin-category-form' and 'fix-missing-body-message-flash'
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
As the around page includes a copy of the reporting form (when JS is
available), it runs the same templating code that the reporting form
does. Part of this code compares the bodies and bodies_to_list stash
variables to see whether it needs to display a message about missing
body information. Previously both variables were empty on the around
page itself, so no message would be shown, but a new bodies variable
was added in 4668f81a, which meant the message was now output in the
HTML and shown briefly when the map was clicked - until updated by a
server response). Rename the variable so that this no longer occurs.
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| | |
* Much simplified display of metadata field options.
* Fields can now be dragged into the desired order.
* Drop-down question form disabling can now have
a different message per option.
Co-Authored-By: Matthew Somerville <matthew@mysociety.org>
|
|/ |
|
|\ |
|
| | |
|
| |
| |
| |
| | |
Co-Authored-By: Zarino Zappia <mail@zarino.co.uk>
|
|\ \ |
|
| |/ |
|
| |
| |
| |
| |
| | |
This is only used for audit purposes on FixMyStreet and not required in
Confirm.
|
| |
| |
| |
| |
| |
| | |
add a check into the Alerts script to skip comments that have
`triage_report` set in extra. Otherwise we send these our in new_updates
alerts.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
On reports with a state of `for_triage` override the `_inspect.html`
template to display one which allows only allows the user to change the
category from one with a 'Triage' send_method to a non Triage
send_method.
When saved this records a comment with the original category and the
category it was triaged to. This is hidden from the site as it's only
used for audit purposes and sending over Open311.
This assumes that the triage categories have the same names as the
groups of the confirm categories. It uses this to select the first
confirm category in the group corresponding to the triage category.
This also makes the sidebar geolocation onclick handler check for the
presence of the button, as the triage inspect form does not have it.
|
|/ |
|
|
|
|
|
|
|
| |
This improves the reporting journey to only ask for category,
and then category extra questions if appropriate, first, so that
if the choice would lead to the form being disabled, this can
be shown immediately.
|
|
|
|
|
|
| |
If a body was set to Open311, and a contact set to Email, it was
impossible to unset the contact's send method and set an Open311
code, because it would always demaned a valid email address.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
Remove all existing hard-coded register_category calls, and have
a new way of implementing staff_ignore.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
There was a small bug where the 'default_to_body' permission would
override the 'report anonymously' button when staff users were adding
reports to the site. The result of this was that the name of the
anonymous user record would be shown. No harm done, as that user's name
would likely be set to "Anonymous user" in config, but it resulted in
reports pages showing the slightly odd wording along the lines of:
Reported in the Bin bags category by Anonymous user at 14:57 today
This commit ensures the contributing_as_body flag is mutually exclusive
with the 'report_anonymously' request parameter.
|
|
|
|
|
| |
If an extra field on a category has a protected flag then do not
overwrite or remove it when populating categories.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a message is sent via the contact form, with a stated email address
matching a user in the database, the resulting email will now include
quick links to:
- Admin page for editing the user
- Admin page for viewing the user’s reports
And if the user has made at least one report, also:
- Admin page for the user’s most recent report
This should speed up admin email triage considerably.
|
| |
|
|
|
|
| |
Also tidies up the categories_restriction query for Northamptonshire.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
correctly
|
| |
|
| |
|
|
|
|
|
| |
Make it more like the staff-creation, with no
confirmation email, and no messing with the user.
|
| |
|
|
|
|
|
|
|
| |
If you come to /report/new with a part-filled report (say you've gone
via an OAuth flow), then the stash needs to get the category from the
report, not a query parameter, and report_meta needs initializing, as
that is what the template uses to fill in existing attribute answers.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This should make it easier to add browser tests as you won't have to
get the click precisely on the right pixel in order to have it match
the correct area.
|
|/ |
|
|
|
|
|
|
|
|
| |
If autofill on Chrome is turned on and has saved the user's login it
can autofill the user's email address in the report title, so add
validation to make sure the title does not look like an email.
Fixes #2570
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
The group metadata of a contact can now be a comma separated list of
groups under which to display the category
For #2475
|