aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
...
| * Add .btn and .form-control classes to inputsZarino Zappia2016-10-04-1/+5
| |
| * More robust .with-notes CSS layoutZarino Zappia2016-10-04-48/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this commit is finished, modern browsers will have a far less buggy layout on .with-notes pages. The main improvements are: 1. Simplified padding on .with-notes columns, allowing us to link to an individual column (eg: /inspect#side-report-secondary) without the browser scrolling down to jump over the #map_sidebar padding on desktop browsers. Making hash fragment scrolling work means we can automatically scroll Inspectors down to the Inspect form, when they click the Inspect button on mobile devices, without worrying about it breaking the desktop experience. 2. Flexible .with-notes column widths, meaning the layout no longer breaks when long sidebar content triggers a scrollbar and decreases the usable width of the sidebar. A predefined width for #side-report means we can make sure .shadow-wrap is the correct width, despite its fixed position taking it out of the document flow. We make a trade-off on mid-size screens (768-960px), of hiding the map to keep the two-column sidebar usable. Will revisit if it turns out this causes problems later on.
| * Remove separate “Public update” form sectionZarino Zappia2016-10-04-0/+30
| | | | | | | | | | | | Inspectors can now tick the optional “Save with a public update” checkbox, to reveal the “Public update” textarea. This means there is no longer a need for two separate submit buttons.
| * Tidied up .btn class and button-reset mixinZarino Zappia2016-10-04-63/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | Even though FMS has had a `.btn` class for a while, styling buttons has still been difficult, mainly because of the very opinionated base styles applied to overpowered selectors like `input[type="submit"]`. This commit brings the FMS styles more in line with modern frameworks like Bootstrap – inputs and buttons are left completely unstyled by default, with an opt-in `.btn` class to add the styles back in. Since `.btn` is just a single class, it’s easy to override, and avoids selector bloat like `.green-btn, button.green-btn, input.green-btn`.
| * Restructure Inspect form into logical sectionsZarino Zappia2016-10-04-24/+66
| | | | | | | | | | | | | | | | IDs and locations at the top, then location-related actions (including a new “navigate to this problem” button), then status and category inputs (since these can have an effect on how we display the rest of the form), then any status/category-related inputs, and finally inputs for internal details like priority and traffic management.
* | [UK] A few small JavaScript fixes.Matthew Somerville2016-09-23-0/+4
| | | | | | | | Cope better if things aren't defined.
* | Fix update moderation buttons.Matthew Somerville2016-09-23-1/+1
| |
* | Add UI for managing category reputation thresholdDave Arter2016-09-23-0/+10
|/
* [UK] Different validation for report/update names.Matthew Somerville2016-09-20-4/+16
|
* Merge branch 'issues/forcouncils/7-custom-open311-attributes'Matthew Somerville2016-09-20-123/+143
|\
| * New section headings in report form.Zarino Zappia2016-09-20-30/+67
| | | | | | | | | | The report form is now split into "Public" and "Private" sections, with a third, matching heading, for the category_extras, if shown.
| * Styling for .extra-category-questions containerZarino Zappia2016-09-20-2/+34
| |
| * Better vertical rhythm for labels and form inputsZarino Zappia2016-09-20-1/+4
| |
| * New .form-control class for simpler input stylingZarino Zappia2016-09-20-85/+37
| | | | | | | | | | | | | | | | | | | | | | Form input styling is mostly left up to the browser default now. A custom border, drop-shadow, and border-radius can be applied by adding the `.form-control` class, which standardizes the appearance of inputs, selects, and textareas. The core reporting form, authentication forms, local alert forms, contact form, and questionnaire form have all been updated to use the new `.form-control` class.
| * Remove "Tips for perfect…" headings on reporting formZarino Zappia2016-09-20-4/+0
| | | | | | | | | | | | The ticks and crosses already imply that these are things you should and shouldn’t do. Removing the headings reduces visual clutter, and better associates the tips with the form input directly above.
| * Avoid nesting of #category_meta in report formZarino Zappia2016-09-20-1/+1
| | | | | | | | | | Switching between categories with / without extra questions no longer results in nested `#category_meta` elements.
* | Organize report admin actions into single control.Zarino Zappia2016-09-20-32/+70
|/ | | | | | | | As part of this, rename "planned reports" to "shortlist". The `.segmented-control` component now supports basic usage (as in the admin report actions menu bar) and usage with hidden radio inputs and labels (as on the report questionnaire page).
* [fixmystreet.com] New councils page.Martin Wright2016-09-13-96/+751
|
* Merge branch 'issues/forcouncils/6-oxfordshire-photo-guidance'Matthew Somerville2016-09-09-0/+6
|\
| * Pluralize "Photos" form label after Dropzone loadsZarino Zappia2016-09-09-0/+6
| | | | | | | | | | A very subtle nudge that you can/should upload multiple photos. With a fallback to singular if Dropzone fails to load for some reason.
* | Remove inline onclick handlers.Matthew Somerville2016-09-09-1/+5
| |
* | Fix form validation issue with multiple IDs.Matthew Somerville2016-09-09-10/+4
| | | | | | | | | | | | Firefox would, on a page that pulled in a report via ajax, only return the reporting form's name field with #form_name. Switch to using a class on the relevant fields.
* | Add validName validation to update form.Matthew Somerville2016-09-09-4/+1
| |
* | Fix scrolling error into view.Matthew Somerville2016-09-09-1/+3
| | | | | | | | Firefox still only scrolls precisely to the focus.
* | Tidy/remove some old validation code.Matthew Somerville2016-09-09-42/+1
| |
* | [Oxfordshire] Fix narrow nav on adminDave Arter2016-09-08-1/+1
| |
* | Extend response templates to work across all cobrandsDave Arter2016-09-08-0/+8
|/ | | | | | | | | | | This builds on the response templates in the Zürich cobrand: - Allow response templates to be assigned to categories - Also adds a auto_response flag, which will be used to automatically create updates when reports are made. - Include response templates select box on update form For mysociety/fixmystreetforcouncils#31
* [FixaMinGata] Add Open Graph informationJon Kristensen2016-09-07-0/+0
|
* [FixaMinGata] Add "user-info" margin on front pageJon Kristensen2016-09-07-1/+3
|
* Fetch MapQuest images via HTTPS rather than HTTPJon Kristensen2016-09-07-4/+4
|
* [FixaMinGata] Decrease header size and logo padding on front pageJon Kristensen2016-09-07-0/+4
|
* A couple of CSS improvements on report pageZarino Zappia2016-09-06-24/+27
| | | | | | | | - Harmonise two-column sidebar with .with-notes convention `body.mappage.twocol` is now `body.mappage.with-actions` to make it more obvious that it’s just a special case like `.with-notes`. - Make sidebar padding-bottom work with floated children - Display a.btn elements correctly in Safari
* Add inspector report detail viewDave Arter2016-09-06-51/+163
| | | | | | | | | | | | | Users with the `report_inspect` permission can click a new 'inspect' button on a report page to input more detailed problem information into a new form that appears in a column alongside the report detail. - Inspector data is stored in problem's 'extra' field - Report category/state can be edited - Location can be changed by dragging the pin or HTML5 geolocation (Factored out Zurich admin pin drag into own function) For mysociety/fixmystreetforcouncils#22
* Fix photo preview display after submission.Matthew Somerville2016-09-05-23/+36
| | | | | | If the form is submitted and reshown, due to an error or logging in, the image preview is loaded from the server, rather than the client. We need to get the image source data to get the Exif data out of it.
* Make sure moderation works on AJAX-loaded report.Dave Arter2016-08-26-51/+51
| | | | | | | | This refactors the moderation JS into a fixmystreet.set_up function, and ensures the button handlers are attached when a new report is loaded over AJAX. A side effect of bringing it into fixmystreet.js instead of its own moderate.js file is the few extra kb each user will have to download, but hopefully gzip and caching will help ameliorate this.
* Fix updating email field when reporting as anotherMatthew Somerville2016-08-23-1/+2
| | | | | | When the form is shown via JavaScript, we need the email box to start off editable as it is if you hadn't used JavaScript, and we also need the change() to be fired on the right field.
* Allow user to have an area assigned in adminDave Arter2016-08-22-0/+6
|
* Catch content changes with delegation/selectors.Matthew Somerville2016-08-22-4/+4
| | | | | e.g. if a report is pulled in to the page via JavaScript, we need this to run on the entry in the update form.
* Add user planned reports.Matthew Somerville2016-08-22-0/+21
| | | | | | A user with the appropriate permission can add/remove reports from their list of planned reports using a button on a report page. The list can be viewed at /my/planned.
* Get contribution state from server with map click.Matthew Somerville2016-08-19-0/+17
| | | | This makes sure the correct dropdown is shown.
* Fix broken permalink link.Matthew Somerville2016-08-19-7/+5
| | | | | | The map JavaScript assumes that the permalink div already exists. [Bristol] Make sure the control is added.
* Make sure PanZoom works in older OpenLayers.Matthew Somerville2016-08-19-39/+8
| | | | | Remove unused code that is same as upstream (it was added when the map middle didn't match the visible middle), and the world button.
* Move non-JavaScript pan/zoom to same as with JS.Matthew Somerville2016-08-17-7/+20
| | | | | No need to use old OpenLayers PanZoom defaults, or load images we don't want to use.
* [Harrogate,Zurich] Remove inline/header script.Matthew Somerville2016-08-17-0/+169
|
* Make sure pin ID is an integer.Matthew Somerville2016-08-17-7/+11
| | | | This was originally fixed in c36a425b, but lost again in c87f28e.
* [fixmystreet.com] Don't show things to Page Speed.Matthew Somerville2016-08-17-1/+1
|
* Remove use of new window.Function for CSP.Matthew Somerville2016-08-17-1/+1
| | | | Even though it is empty.
* Simplify blank popState case.Matthew Somerville2016-08-17-1/+13
| | | | Prevent possible infinite loops during internal hashref change.
* Improve try again button by making it go back.Matthew Somerville2016-08-16-0/+4
|
* Move most JavaScript to end, inline the remaining.Matthew Somerville2016-08-16-2/+4
|