aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* [FiksGataMi] Allow longer text in go buttonMarius Halden2017-05-30-0/+15
|
* On /reports maps, only include reports in view.Matthew Somerville2017-04-13-2/+36
| | | | | | | | | Update the reports with a bounding box, similar to on around pages. This is made slightly trickier because we don't want to do anything on page load (we already have the pins), we need to reload when the zoom changes, and we don't want the strategy to get confused by its first redraw, e.g. on pin hover, We also need to turn off the zoom- to-bounds if we've got a bounding box in the URL.
* Improve translatability of various pages.Dave Arter2017-03-30-12/+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.
* Use lat/lon on inspection form if local coordinates aren’t availableDave Arter2017-03-30-0/+4
|
* Set `background-color`, not `background` on nav linksZarino Zappia2017-03-30-11/+11
| | | | This makes it easier for cobrands to override nav link styles.
* Add ability to override Google Maps road style.Dave Arter2017-03-30-1/+17
|
* Add customisable defect types.Dave Arter2017-03-23-17/+18
| | | | | | | | | 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-11/+25
|
* Fix invisible segmented controls in old Webkit.Matthew Somerville2017-03-16-0/+1
| | | | | | | | | | | | | | | | | | | | | | I can't put it better than https://roland.codes/blog/legacy-flexbox-invisible-float-bug/ : "Webkit’s implementation of legacy Flexbox has an strange bug that makes flex items become invisible when they’re floated. What makes it strange is that the flex items will still take up space in the DOM, as if they have visibility: hidden applied. Usually you wouldn’t use float on flex items (the spec even says that float has no effect on them). But it’s useful for providing a fallback layout when Flexbox isn’t supported. Luckily I chanced on a hack that fixes the bug. All you have to do is give the floated flex items a position, like position: relative, and they’ll (strangely) become visible again. Another option is to use Modernizr to only apply the float when Flexbox isn’t supported. This bug affects legacy Flexbox in all Webkit browsers. Which includes Chrome 20-, Safari 6-, iOS 6.1- and Android 4.3-."
* [fixmystreet.com] Remove friendly A/B test.Matthew Somerville2017-03-16-182/+0
| | | | This has been running for a year, added in e17eb20.
* Be clearer if no states selected is not all statesMatthew Somerville2017-03-10-1/+2
| | | | As with 1115f106, a default might not be everything.
* Merge branch 'issues/forcouncils/171-filter-dropdown-all'Matthew Somerville2017-03-10-2/+3
|\
| * Specify options in 'all' status filter.Matthew Somerville2017-03-09-2/+3
| | | | | | | | | | 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-345/+355
| |
* | Add submit buttons to admin index search forms.Matthew Somerville2017-03-09-0/+11
| | | | | | | | Also slightly tidy up display.
* | Reduce unneeded admin CSS specificity.Matthew Somerville2017-03-09-47/+52
| |
* | Make sure report Ajax call is not cached by IE11.Matthew Somerville2017-03-09-1/+1
|/ | | | | IE11 caches this Ajax call, not calling out to the server at all if it is made again (e.g. after an update has been made). Fixes #1638.
* Merge branch '1553-fms4c-contact-form'Matthew Somerville2017-03-03-1/+6
|\
| * [fixmystreet.com] Clarify council contact form.Zarino Zappia2017-03-03-1/+6
| | | | | | | | | | | | | | | | | | | | * Tweak wording to make it clearer that the form is unsuitable for residents wanting to report street problems. * Record HTTP Referer when form is submitted, so we can see which pages are leading people to the FMS4C page. * Tidy up capitalisation elsewhere in headings on the page. Fixes #1553.
* | Add buttons to resize maps on report pagespezholio2017-03-02-11/+63
|/ | | | | | | | 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.
* [Oxfordshire] Add Exor RDI file download featureDave Arter2017-02-15-2/+16
| | | | | | | | | | 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
* 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.
* [UK Councils] Use new main_nav.html for main menuDave Arter2017-02-14-0/+18
|
* [Harrogate] Remove unused cobrandDave Arter2017-02-09-969/+0
|
* [Greenwich] Add a badge to official status updatesrbg-joe2017-02-06-0/+0
| | | | | | | | | Adding an official badge to Greenwich updates so as to avoid exchanges in which public contributions are mistaken for official ones. As per the Bromley version e.g. https://fix.bromley.gov.uk/report/973784 - this helps to avoid situations where public contributions are mistaken for official ones.
* Simplify response template selector HTMLDave Arter2017-01-31-2/+2
| | | | | | | | | | | 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
* Fire shortlist JavaScript only on report lists.Matthew Somerville2017-01-24-1/+1
| | | | | It was also catching update lists, which have their own submit buttons (e.g. for moderation).
* Merge branch 'offline-tweaks'Matthew Somerville2017-01-17-8/+19
|\
| * Require confirmation for clearing offline data.Matthew Somerville2017-01-12-5/+7
| |
| * Remove offline banner when no longer necessary.Matthew Somerville2017-01-12-0/+9
| |
| * Change offline wording to use 'update', not 'form'Matthew Somerville2017-01-12-3/+3
| |
* | Show shortlist icons in button on report pageZarino Zappia2017-01-12-6/+44
| |
* | Add shortlist buttons to report lists.Matthew Somerville2017-01-12-73/+287
| | | | | | | | | | | | | | 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-0/+12
| |
* | Force .tablewrapper to use fixed column widthsZarino Zappia2017-01-12-0/+1
| | | | | | | | | | | | Most noticeably, this fixes a long standing bug on the Oxfordshire homepage where the "how to" and list of reports made the right-hand edge of .content spill outside its parent.
* | Avoid coloured report backgrounds on homepageZarino Zappia2017-01-12-0/+4
|/
* Merge branch 'issues/forcouncils/140-hide-show-name-for-csas'pezholio2017-01-10-1/+1
|\
| * [UK Councils] Disable show name checkbox when reporting as someone elsepezholio2017-01-10-1/+1
| |
* | Prefill update field based on problem stateDave Arter2017-01-10-2/+21
|/ | | | | | | 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.
* Merge branch 'issues/forcouncils/21-print-reports'Matthew Somerville2016-12-16-4/+103
|\
| * Improve print layout for report list pages.Zarino Zappia2016-12-16-4/+98
| | | | | | | | | | | | | | | | | | 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.
| * [fixmystreet.com] Hide footer in print view.Zarino Zappia2016-12-16-0/+5
| |
* | [Angus,Bristol] Don't try and add assets if no mapMatthew Somerville2016-12-16-0/+12
| |
* | Try and not show offline banner unnecessarily.Matthew Somerville2016-12-16-2/+1
| |
* | Merge branch 'issues/forcouncils/20-offline-inspecting'Matthew Somerville2016-12-16-34/+464
|\ \ | |/ |/|
| * Add a clear offline data button.Matthew Somerville2016-12-16-0/+12
| |
| * Add offline storing of inspect forms.Matthew Somerville2016-12-16-3/+122
| | | | | | | | | | | | | | | | | | | | This allows the inspect form to be submitted when offline, with the data saved in localStorage, the number of saved forms shown in the banner, and the forms to be uploaded when back online. It copes if you go back to a report after having submitted the form, and if the back-online submission fails due to CSRF failure, retrying once with a new token.
| * Store/show shortlisted reports offline.Matthew Somerville2016-12-16-35/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This: * On an online visit to /my/planned, caches all shortlisted reports, their images and static maps in localStorage, with progress banner; * When a report is added/removed from the shortlist, caches/de-caches that report; * When viewing a report page offline, shows that page from the cache if present (replacing the dynamic map with the cached static map, and replacing report images with their cached equivalents – it is a shame to duplicate, but we cannot rely on the browser cache having these images); * When viewing another page offline, shows an error message but also the list of shortlisted reports that are cached (again, replacing their thumbnail images with the cached versions).
| * Add offline support of static files/fallback page.Matthew Somerville2016-12-16-0/+5
| | | | | | | | | | Use a list to store JavaScript files, so it can be shared between the HTML footer and the appcache manifest.
* | Don't fix height of admin multiple selects.Matthew Somerville2016-12-16-1/+1
| | | | | | | | | | | | The styling applied to the nice front end multi-select dropdowns should not be applied to the admin multi-select ones, until such time as they are using the nice select interface too.