aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Add inspector report detail viewDave Arter2016-09-06-9/+162
| | | | | | | | | | | | | 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
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-2/+2
|
* Allow user to have an area assigned in adminDave Arter2016-08-22-1/+38
|
* Allow searching for reports with ref: prefix in postcode fieldDave Arter2016-08-22-0/+23
| | | | | | | | | Searches the `id` and `external_id` fields. This takes you directly to the report if only a single report matches, otherwise a disambiguation page is shown. For mysociety/fixmystreetforcouncils#16
* Add user planned reports.Matthew Somerville2016-08-22-6/+66
| | | | | | 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/+10
| | | | This makes sure the correct dropdown is shown.
* Restrict admin config/stats pagesDave Arter2016-08-17-21/+9
| | | | | The config page is only accessible by superusers. The stats page only shows figures for the user’s from_body unless superuser.
* Allow user permissions to be granted/revoked in adminDave Arter2016-08-17-3/+26
|
* Restrict from_body editing to superusersDave Arter2016-08-17-1/+9
| | | | | | | Superusers can set a user's from_body to any value, but a normal staff user can only set another user's from_body to the same as their own or undefined. This is presented in the UI as a 'staff' tickbox.
* Restrict user editing in adminDave Arter2016-08-17-3/+9
| | | | | | | | The 'user_edit' permission is required to edit users. The admin pages on UK council cobrands only allow editing of users whose from_body is the same as the logged-in user, or who have sent reports or updates to the council.
* Require 'report_edit' permission for editing reports in adminDave Arter2016-08-17-0/+7
|
* Remove unused category_extras_json code.Matthew Somerville2016-08-16-1/+0
|
* Remove some unused code/ database handle.Matthew Somerville2016-08-12-26/+1
|
* Direct report moderated emails correctly.Matthew Somerville2016-08-10-7/+3
|
* Merge branch 'issues/forcouncils/10-report-as-dropdown'Matthew Somerville2016-08-10-11/+74
|\
| * Feature to create report as body/other user.Zarino Zappia2016-08-10-11/+74
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add config for Open311 request limit, default 1000.Matthew Somerville2016-08-10-3/+4
|/ | | | Fixes #1313.
* Fix other "keys on reference" warning.Matthew Somerville2016-08-08-1/+1
| | | | This is a continuation of b45b29c8.
* Add HTML email templates.Matthew Somerville2016-08-01-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add static map output view for a report.Matthew Somerville2016-08-01-0/+11
|
* Test for Image::Magick installation better.Matthew Somerville2016-08-01-2/+0
| | | | (VERSION disappears in some recent version.)
* Refactor map pin/feature functions.Matthew Somerville2016-07-21-35/+32
|
* Fix crash on /my page due to missing pin.problemDave Arter2016-07-21-0/+1
|
* Fix "keys on reference is experimental" warning in Perl 5.20+Dave Arter2016-07-21-1/+1
|
* Respect cobrand restriction for unsent reportsDave Arter2016-07-19-1/+1
|
* Disallow empty name when creating/editing bodies in adminDave Arter2016-07-19-17/+32
|
* Restrict add/editing of bodies in admin to superusersDave Arter2016-07-19-2/+7
|
* Use normal user authentication to control access to /adminMatthew Somerville2016-07-19-4/+10
| | | | | | | | | - Adds is_superuser flag to User - Logged-in user must be a superuser or have from_body set in order to access anything within /admin - has_permission_to on a superuser will always return true - Only superusers can create/grant superusers - New `createsuperuser` command for creating superusers
* Allow editing of category on admin report edit.Matthew Somerville2016-07-15-2/+34
| | | | This also updates the body column to match the category.
* Remove bit of unused/needed code.Matthew Somerville2016-07-15-24/+3
|
* Check extras for all retrieved contacts.Matthew Somerville2016-07-15-12/+12
|
* Add missing 'pin.problem' attributeDave Arter2016-07-11-0/+1
| | | | | Missed this from 8a8b34, and it was causing a crash on certain /reports/ pages when trying to display the list of problems.
* [UK Councils] Show all reports on cobrand /around mapDave Arter2016-07-08-0/+1
| | | | | | | | | | | | | | There is a concern that excluding district council reports from a two-tier council's cobrand's /around page might lead to duplicate reports or reports never being seen. This commit adds them to the map and the sidebar and displays the destination council in the report list item. Clicking the pin or the report link leads to the report on FMS.com. Reports sent to the a council other than the the active cobrand are shown as grey pins on the map, and the receiving council's name is shown in the sidebar list.
* Restructure & clarify problem confirmation pageDave Arter2016-07-08-2/+2
| | | | | | | The message shown to the user if the report was sent to a council other than the cobrand owner was confusing so the wording has been clarified. Also added a call to action to view the report on FMS.com or the cobranded FMS.
* Refactor sending of problem confirmation emailDave Arter2016-07-08-32/+29
| | | | | | | | Replaced duplicate code blocks that are responsible for sending confirmation of problem email with a function. Should make it easier to do two-tier conditional messages later on. Also fixes a minor bug where the wrong confirmation email would be sent for reports from the mobile app to unresponsive councils.
* [Bristol] Only show Open311 categories on Bristol cobrandDave Arter2016-07-08-12/+3
| | | | | | | | | | | | This adds a new Cobrand::Default::categories_restriction method that can be used to limit what categories are available when making a new report on a per-cobrand basis. This is used by Cobrand::Bristol to only show Open311 categories when making a new report on fixmystreet.bristol.gov.uk but allowing all categories on FMS.com. Also removes the Hart::hidden_categories and uses the new categories_restriction method to achieve the same thing.
* Fix CSRF issue with new login during process.Matthew Somerville2016-07-05-0/+3
| | | | | | If you had no session cookie, started reporting a problem, logged in through that process, you would then get a CSRF error as the token had been created before the session was.
* Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-0/+7
| | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* Use static files for validation_rules.js.Matthew Somerville2016-07-04-2/+0
| | | | | No need for this to be generated via a template, it only differs occasionally by cobrand.
* Add external field editing to admin report edit.Matthew Somerville2016-06-29-47/+20
| | | | Show bodies for which details are missing, and any send method used.
* Improve admin report edit page.Matthew Somerville2016-06-29-17/+14
| | | | | Show map, break into two columns, fix display of sent time after clicking "Mark as sent", tidy up labels.
* Warnfix when admin editing user.Matthew Somerville2016-06-22-1/+1
|
* Show any waiting reports on admin index page.Matthew Somerville2016-06-22-0/+7
|
* Allow admin to edit user's phone number.Matthew Somerville2016-06-22-0/+3
|
* Merge branch 'alert-missing-id'Matthew Somerville2016-06-22-13/+10
|\
| * Catch alert subscription with missing ID.Matthew Somerville2016-06-20-13/+10
| |
* | Merge branch '360-change-email'Matthew Somerville2016-06-20-72/+134
|\ \ | |/ |/|
| * Allow users to update their email address.Matthew Somerville2016-06-20-12/+57
| |
| * Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-55/+71
| |
| * Improve auth flow taken when return key used.Matthew Somerville2016-06-20-5/+6
| |