| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
| |
As the templates were using `grep`, they failed to match on a category
such as "Footpaths (right of way)". Changing the stash variables to be
hashes instead of lists makes checking for a key simpler. Fixes #1688.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit makes the following parts of the site translatable:
- Social login buttons
- Moderation UI
- Offline glitch page & offline caching UI
- Dashboard
It also fixes a bug in the nget parser, stops some Oxfordshire bits
being translated for the moment, and brings the translation file up
to date.
|
|
|
|
|
|
|
|
|
| |
Problems can have an associated defect type, that can be assigned during
an inspection. Include an admin interface for managing these types, that
can also be assigned on a per-category basis, currently available to the
Oxfordshire cobrand.
(Also include 'TM' in traffic management Exor RDI output.)
|
|
|
|
| |
Also slightly tidy up display.
|
|
|
|
|
|
|
|
|
|
| |
The RDI file format encapsulates information about inspections that have taken
place, and can be uploaded into Exor to create defects in bulk.
This commit adds a page to the Oxfordshire cobrand's admin allowing RDI files
to be generated and downloaded from FMS.
For mysociety/fixmystreetforcouncils#127
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Limits the state dropdown to those states which will be useful to OCC
inspectors, as well as removing a few from the base template on the inspect
form. Some slight template refactoring has made it easier for other cobrands to
override the list, as well as sharing the template with the admin report_edit
form to allow all states to be selected.
Fixes mysociety/fixmystreetforcouncils#129
|
|
|
|
| |
Bromley had this already in its update state change messages.
|
|
|
|
|
|
|
|
|
|
|
| |
Using a div inside a p isn't valid, so the DOM was being restructured by the
browser causing the 'save with public update' toggle on the inspect form to not
work.
This fixes the issue by removing the wrapper <div> and selecting the appropriate
elements for toggling with the js- class on the <select>.
Fixes mysociety/fixmystreetforcouncils#153
|
| |
|
|
|
|
|
| |
As we now have many permissions, highlighting those who have the
moderate permission is not very useful.
|
| |
|
| |
|
|
|
|
|
|
|
| |
If there’s a response template matching the problem’s new state,
it’s selected and the update field prefilled accordingly.
The exception to this is if the user has manually entered text
into the update field already.
|
|
|
|
| |
This includes a refactor of the state dropdown field into its own template for easy reuse.
|
|
|
|
|
|
|
|
|
| |
The main map page elements are given `position:static` to ensure they
flow onto as many pages as required. The map image is floated to the
right, rather than wasting space at the top of the file.
We also, if the user has the inspect permission, include hidden
rrint-only metadata in the report lists.
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
| |
- A user can be assigned to any number of its body's categories
- The category ids are stored as a list in the user's extra field
|
| |
|
|
|
|
| |
Fix title if error in adding user. Fixes #1510.
|
| |
|
| |
|
|
|
|
|
| |
- Priorities with no categories selected are available to all categories
- Display active categories in response priorities table
|
|
|
|
|
| |
- Also adds add select all/none UI
- Adds admin hint for empty category list behaviour
|
|
|
|
| |
Used internally to provide more details about when a priority is applicable.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* The same template is now used for creating new contacts as well as editing
existing ones.
* Zurich template for editing contacts has been left unchanged for now
* Reputation threshold is included on form
* Fields are in a more intuitive order
* Required fields are marked as such in DOM for client-side validation
* Rename ‘notes’ field to make its meaning clearer
|
| |
|
|\ |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
- Superusers couldn't view response priorities due to invalid $c->forward call
- Navigation to other areas of admin was broken on response priority admin pages
|
|
|
|
|
| |
When a trusted user makes a report in a category that requires inspection, it'll
be sent immediately (i.e. without being inspected first).
|
|
|
|
|
|
| |
- Zurich users don't need permission to access user_edit page
- from_body can be set to any body by Zurich admin users, not just their own
- Don't show the area field on user_edit form
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Allow get_extra_metadata to return all the data with no argument.
|
|
|
|
|
|
|
| |
This moves the response priority values from a cobrand-specific method to a full
DB model, and includes management screens in the admin for administering them.
For mysociety/fixmystreetforcouncils#66
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|