aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base
Commit message (Collapse)AuthorAgeLines
* Fix issue with categories with regex characters.Matthew Somerville2017-04-13-2/+2
| | | | | | 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-29/+17
|
* Improve translatability of various pages.Dave Arter2017-03-30-85/+103
| | | | | | | | | | | | | 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.
* Use lat/lon on inspection form if local coordinates aren’t availableDave Arter2017-03-30-3/+9
|
* Use Google Maps JS API key, if present.Dave Arter2017-03-30-1/+6
| | | | | This appends the GOOGLE_MAPS_API_KEY to the Google Maps JavaScript URL as a `key` parameter.
* Add customisable defect types.Dave Arter2017-03-23-12/+115
| | | | | | | | | 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.)
* Show loading indicator when loading pinspezholio2017-03-17-1/+3
|
* Use name at time of moderation, include superusersMatthew Somerville2017-03-14-2/+2
| | | | This works better if e.g. a user stops being associated with a body.
* Be clearer if no states selected is not all statesMatthew Somerville2017-03-10-1/+5
| | | | As with 1115f106, a default might not be everything.
* Add is_in_progress Problem helper.Matthew Somerville2017-03-10-2/+1
|
* Merge branch 'issues/forcouncils/171-filter-dropdown-all'Matthew Somerville2017-03-10-1/+2
|\
| * Specify options in 'all' status filter.Matthew Somerville2017-03-09-1/+2
| | | | | | | | | | A cobrand may have a blank default that isn't everything, so the "All reports" option must specify all the possible options.
* | Move staff-only JavaScript to separate file.Matthew Somerville2017-03-10-1/+7
| |
* | Add submit buttons to admin index search forms.Matthew Somerville2017-03-09-0/+6
|/ | | | Also slightly tidy up display.
* Merge branch '1553-fms4c-contact-form'Matthew Somerville2017-03-03-1/+1
|\
| * [fixmystreet.com] Avoid /about/council redirects.Zarino Zappia2017-03-03-1/+1
| |
* | Add buttons to resize maps on report pagespezholio2017-03-02-1/+4
|/ | | | | | | | This improves usability on mobile devices, allowing users to pan around the problem and see the area in more detail. I've also changed the CSS around a bit, so we can use the `map-fullscreen` class in other places.
* Correct pluralise ‘days ago’ on problem last updateDave Arter2017-02-27-1/+1
|
* [Oxfordshire] Use 'days ago' format on problem listspezholio2017-02-27-2/+10
| | | | Fixes mysociety/fixmystreetforcouncils#98
* Include /admin link on top-level nav for admin usersDave Arter2017-02-16-0/+4
| | | | Fixes mysociety/fixmystreetforcouncils#166
* [Oxfordshire] Add Exor RDI file download featureDave Arter2017-02-15-0/+48
| | | | | | | | | | 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
|
* Clarify ‘inspected’ behaviourDave Arter2017-02-15-1/+1
| | | | | | A report is now considered 'inspected' if its state was changed by an inspector. Additionally, an AdminLog entry is created so the time of inspection and inspector can be recorded.
* Add external_id field to ResponsePriority for use with ExorDave Arter2017-02-15-0/+10
|
* Allow users to reopen closed reportspezholio2017-02-15-3/+7
| | | | Users can reopen their own reports when leaving an update.
* Refactor main nav into reusable blocksDave Arter2017-02-14-29/+80
|
* [Oxfordshire] Show simpler state list on inspect formDave Arter2017-02-08-13/+38
| | | | | | | | | | 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
* [Oxfordshire] Allow cobrand-specific traffic management optionsDave Arter2017-02-08-2/+3
| | | | Fixes mysociety/fixmystreetforcouncils#159
* Add shortlist filterspezholio2017-02-07-0/+4
|
* Show ‘unable to fix’ state as ‘no further action’.Dave Arter2017-02-02-2/+2
| | | | 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
* Wrap problem list in `js-reports-list`pezholio2017-01-31-0/+2
|
* Mark two missing strings for translation.mccheung2017-01-21-2/+2
| | | | Fixes #1604.
* Include ‘Add user’ link on admin user search results pageDave Arter2017-01-19-0/+2
|
* Merge remote-tracking branch ↵pezholio2017-01-17-49/+1
|\ | | | | | | 'origin/issues/forcouncils/142-allow-anonymous-council-updates'
| * Refactor updates metadata output into modelpezholio2017-01-17-49/+1
| |
* | Merge branch 'listshort'Matthew Somerville2017-01-12-10/+52
|\ \ | |/ |/|
| * Show shortlist icons in button on report pageZarino Zappia2017-01-12-2/+6
| |
| * Add shortlist buttons to report lists.Matthew Somerville2017-01-12-3/+39
| | | | | | | | | | | | | | This includes adding/removing reports from a user's shortlist, and manual reordering of a shortlist with up/down buttons. The backend code can cope with an item moving to any point in the list.
| * Show response priorities in report list itemsZarino Zappia2017-01-12-5/+7
| |
* | 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.
* | Allow staging sites to turn off appcache.Matthew Somerville2017-01-10-1/+0
| |
* | 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-21/+29
| | | | This includes a refactor of the state dropdown field into its own template for easy reuse.
* Merge branch 'issues/forcouncils/21-print-reports'Matthew Somerville2016-12-16-0/+58
|\
| * Improve print layout for report list pages.Zarino Zappia2016-12-16-0/+58
| | | | | | | | | | | | | | | | | | 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 'issues/forcouncils/20-offline-inspecting'Matthew Somerville2016-12-16-117/+179
|\ \ | |/ |/|