aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
...
* | 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
* [fixmystreet.com] Replace councils page with temporary pageMartin Wright2016-08-02-458/+33
| | | | | | Temporarily removes the councils page as the information was out of date. Replaces it with a holding page. New page is on the way.
* [East Sussex] Remove East Sussex cobrandDave Arter2016-08-02-482/+0
|
* [UK Councils] Email themes for 4 UK councilsZarino Zappia2016-08-01-0/+0
| | | | Email themes for Oxfordshire, Bromley, Warwickshire, and Greenwich.
* Add HTML email templates.Matthew Somerville2016-08-01-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * <th> is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell (<th>) so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float.
* Work correctly for alt-click/cmd-click etc.Matthew Somerville2016-07-14-3/+39
|
* Only set document.title after any pushState call.Matthew Somerville2016-07-14-2/+2
| | | | pushState stores the title at the time for e.g. the Back dropdown.
* Call two more set up functions on report pull.Matthew Somerville2016-07-13-1/+2
| | | | | This is so form valdation and the 'log in by email' button are set up appropriately if pulled in via JavaScript.
* Don't set up multiple handlers on drawers.Matthew Somerville2016-07-13-1/+3
|
* Fix issues with sub_map_links and JS navigation.Matthew Somerville2016-07-12-8/+18
| | | | | Have 'Get updates' displaying correctly on a report page again, fix some navigational problems.
* Fix going back to /reports page on mobile.Matthew Somerville2016-07-12-9/+13
| | | | | | Record the original page we're at, so that when we go back to it, we go back to the right one (the only difference between /around and /reports being the full screen map of /around).
* Zoom into map after second click on marker.Matthew Somerville2016-07-12-0/+7
|
* Make sure mobile map scrolled into view and fixed.Matthew Somerville2016-07-12-2/+12
| | | | | This prevents scrolling when we're on the full screen map, and makes sure the map is back in view when it is shown.
* Only create popstate event after page load.Matthew Somerville2016-07-12-28/+34
| | | | | Some older browers will fire a popstate event at page load, which can cause an issue if we assume it's only fired due to a history event.
* Fix a few JavaScript issues with reports pages.Matthew Somerville2016-07-12-1/+7
| | | | | | | Don't stringify pin problem ID, as get_marker_by_id assumes it will be an integer; only activate the bounding box strategy if it exists; make sure a refresh of the markers happens when going back to the list; set the Back link on a pulled-in report to the current URL.
* Tweak WMTS JavaScript to match merged branch.Matthew Somerville2016-07-11-16/+13
| | | | Use $.each rather than .forEach.
* Merge branch '1351-report-list-ajax'Matthew Somerville2016-07-11-1488/+1771
|\
| * [fixmystreet.com] Update share buttons to be linksMatthew Somerville2016-07-11-4/+15
| | | | | | | | | | Having them as SDK-included buttons causes issues with the ajax report pull-ins, plus Firefox doesn't like them being hidden.
| * Merge two fixmystreet.js file.Matthew Somerville2016-07-11-208/+201
| |