aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* [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
|
* [fixmystreet.com] Factor out poster JavaScript.Matthew Somerville2016-08-16-0/+29
|
* Factor out most inline JavaScript.Matthew Somerville2016-08-16-10/+71
| | | | | No need for a special no-map case in the filters case, as all pages now have fixmystreet.page set if needed.
* Do HTML class and JS variable setting ASAP.Matthew Somerville2016-08-16-6/+19
|
* Use separate mobile banner HTML to simplify changeMatthew Somerville2016-08-16-33/+25
|
* Split up modernizr/html5shiv/yepnope.Matthew Somerville2016-08-16-2/+8
| | | | | We only need html5shiv for <IE9, and we only use yepnope on the front page.
* Only set Back link when first report pulled in.Matthew Somerville2016-08-16-3/+4
| | | | | Otherwise subsequent report views set the Back link to a report URI, so clicking it goes back to the list but with an incorrect address.
* Fix "Problems nearby" link on /my and /reports.Matthew Somerville2016-08-10-1/+5
| | | | | Problems nearby should load the /around page from those pages, rather than act like "Back to all reports" but changing to an incorrect URL.
* Feature to create report as body/other user.Zarino Zappia2016-08-10-0/+28
| | | | | | | | | | | | This allows users who have the correct permissions to add reports on behalf of the body or another user. We enable editing of the email box by default, so that if JavaScript isn't available, someone can still change the email for the 'another user' option. For mysociety/fixmystreetforcouncils#10 and mysociety/fixmystreetforcouncils#11