aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/admin
Commit message (Collapse)AuthorAgeLines
* Fix issue with categories with regex characters.Matthew Somerville2017-04-13-1/+1
| | | | | | 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.
* Factor out shared admin template.Matthew Somerville2017-04-13-14/+16
|
* Improve translatability of various pages.Dave Arter2017-03-30-22/+22
| | | | | | | | | | | | | 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.
* Add customisable defect types.Dave Arter2017-03-23-0/+95
| | | | | | | | | 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.)
* Add submit buttons to admin index search forms.Matthew Somerville2017-03-09-0/+6
| | | | Also slightly tidy up display.
* [Oxfordshire] Add Exor RDI file download featureDave Arter2017-02-15-0/+36
| | | | | | | | | | 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
* [Oxfordshire] Don't show user reputation on other cobrandsDave Arter2017-02-15-8/+0
|
* [Oxfordshire] Add initials field to admin user edit formDave Arter2017-02-15-0/+1
|
* Add external_id field to ResponsePriority for use with ExorDave Arter2017-02-15-0/+10
|
* [Oxfordshire] Show simpler state list on inspect formDave Arter2017-02-08-12/+1
| | | | | | | | | | 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
* Show ‘unable to fix’ state as ‘no further action’.Dave Arter2017-02-02-1/+1
| | | | Bromley had this already in its update state change messages.
* Simplify response template selector HTMLDave Arter2017-01-31-2/+0
| | | | | | | | | | | 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
* Include ‘Add user’ link on admin user search results pageDave Arter2017-01-19-0/+2
|
* Use ‘*’ on admin page to signify superuser.Matthew Somerville2017-01-10-1/+1
| | | | | As we now have many permissions, highlighting those who have the moderate permission is not very useful.
* Move staging flags to their own config variable.Matthew Somerville2017-01-10-5/+9
|
* Update has_body_permission_to to allow superusers.Matthew Somerville2017-01-10-3/+3
|
* Prefill update field based on problem stateDave Arter2017-01-10-1/+1
| | | | | | | 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.
* Allow editing of ResponseTemplate state in adminDave Arter2017-01-10-10/+28
| | | | This includes a refactor of the state dropdown field into its own template for easy reuse.
* Improve print layout for report list pages.Zarino Zappia2016-12-16-0/+2
| | | | | | | | | 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.
* Merge branch 'version-2.0'v2.0Matthew Somerville2016-11-15-61/+61
|\
| * Update translation files from source.Matthew Somerville2016-11-08-61/+61
| |
* | Fix extra "required" by testing correct value.Matthew Somerville2016-11-11-1/+1
|/
* Add UI for assigning categories to a user in adminDave Arter2016-10-28-0/+13
| | | | | - 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
* Add all/none UI to user permissionsDave Arter2016-10-28-0/+4
|
* Show admin user edit errors.Matthew Somerville2016-10-26-4/+7
| | | | Fix title if error in adding user. Fixes #1510.
* Hide confirmed column if all categories confirmed.Matthew Somerville2016-10-24-0/+6
|
* Add ‘form-control’ class where missing from <select> elementsDave Arter2016-10-19-1/+1
|
* Clarify category behaviour for response prioritiesDave Arter2016-10-19-0/+10
| | | | | - Priorities with no categories selected are available to all categories - Display active categories in response priorities table
* Refactor template/priority category checkboxes into own templateDave Arter2016-10-19-26/+34
| | | | | - Also adds add select all/none UI - Adds admin hint for empty category list behaviour
* Add ‘description’ field to ResponsePriority modelDave Arter2016-10-19-1/+7
| | | | Used internally to provide more details about when a priority is applicable.
* Factor Open311 fields into own template for devolved contactsDave Arter2016-10-19-110/+136
|
* Extract category edit form into its own templateDave Arter2016-10-19-176/+124
| | | | | | | | | | * 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
* Apply form-control class to some more inputs.Matthew Somerville2016-10-04-6/+9
|
* Merge branch 'issues/forcouncils/36-mobile-inspector-improvements'Matthew Somerville2016-10-04-75/+77
|\
| * Add .btn and .form-control classes to inputsZarino Zappia2016-10-04-75/+77
| |
* | Show current reputation level on user edit pageDave Arter2016-09-23-0/+8
| |
* | Add UI for managing category reputation thresholdDave Arter2016-09-23-1/+10
|/
* Some minor admin fixesDave Arter2016-09-23-5/+5
| | | | | - 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
* Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-1/+24
| | | | | 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] Restore admin user edit functionalityDave Arter2016-09-16-2/+2
| | | | | | - 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
* Hide response templates UI if there are no templatesDave Arter2016-09-16-0/+2
|
* Give select a name to quieten test function.Matthew Somerville2016-09-09-1/+1
|
* Fix display of timeline times.Matthew Somerville2016-09-09-1/+1
|
* Improve look of permissions options in user admin.Matthew Somerville2016-09-09-4/+6
|
* Improve display of category extra data in admin.Matthew Somerville2016-09-09-5/+26
| | | | Allow get_extra_metadata to return all the data with no argument.
* Refactor problem response priority into its own modelDave Arter2016-09-09-0/+74
| | | | | | | 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
* Add ‘Inspection required’ field to categoriesDave Arter2016-09-09-0/+12
| | | | | | | | | | | 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
* Add confirm step to Remove from site button.Matthew Somerville2016-09-09-1/+1
|
* Remove inline onclick handlers.Matthew Somerville2016-09-09-1/+1
|
* Simplify some permissions logic with extra helper methodDave Arter2016-09-08-3/+3
|