aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/contact.t
Commit message (Collapse)AuthorAgeLines
* Replace use of FixMyStreet::App with DB in tests.Matthew Somerville2019-11-22-6/+6
|
* Per-test file email addresses.Matthew Somerville2019-10-03-0/+1
|
* Include user admin links in contact form emailsZarino Zappia2019-08-23-0/+64
| | | | | | | | | | | | | | | If a message is sent via the contact form, with a stated email address matching a user in the database, the resulting email will now include quick links to: - Admin page for editing the user - Admin page for viewing the user’s reports And if the user has made at least one report, also: - Admin page for the user’s most recent report This should speed up admin email triage considerably.
* [Hounslow] Add general enquiries functionalityDave Arter2019-06-06-0/+31
| | | | | | | | | | | | This functionality allows a cobrand to replace the /contact form with a form that creates hidden reports which are sent via Open311. The form also allows file uploads in addition to photos. This functionality is currently enabled for the Hounslow cobrand and others cobrands can enable it by defining setup_general_enquiries_stash which primarily sets up the appropriate categories and default values for the report.
* Stop warning in contact test.Matthew Somerville2019-05-02-0/+2
|
* Add CSRF and time to contact form.Matthew Somerville2019-02-01-0/+3
|
* [Buckinghamshire] Get topic when reporting abuse.Matthew Somerville2018-12-19-74/+62
|
* Make who question more prominent.Matthew Somerville2018-12-19-3/+5
|
* allow cobrands to restrict /contact to abuse reportsStruan Donald2018-10-18-0/+28
| | | | | Add abuse_reports_only cobrand method that prevents the contact form being used unless it's an abuse report.
* Use site name in contact email subject line.Matthew Somerville2018-08-28-1/+1
|
* Include user agent in contact form emails.Matthew Somerville2018-08-21-1/+1
|
* error on bad update ids passed to contact formStruan Donald2018-06-05-6/+60
| | | | | Return an error if an id for either a hidden update or one not associated with the problem id is passed to the contact form.
* Option to redirect to custom URL from Contact formZarino Zappia2017-07-28-0/+35
| | | | | | | | If a `success_url` parameter is provided along with the contact form fields, the user will be redirected to that URL upon successful form submission. We use it for the first time on the (UK) FixMyStreet Pro marketing page.
* Add an optional phone field to the contact form.Martin Wright2017-07-07-0/+2
|
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-4/+0
|
* Fix flagging wording template link.Matthew Somerville2016-12-16-1/+1
| | | | | | f58ce6c4 changed the base contact template to include a link to a fixmystreet.com specific page. Revert this back and make the change in the correct cobrand only.
* Update wording on flagging unsuitable reports.Matthew Somerville2016-11-25-1/+1
|
* Update contact success message text.Matthew Somerville2016-09-14-2/+2
|
* Add HTML email templates.Matthew Somerville2016-08-01-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Use improved TestMech::create_user_ok instead of User::find_or_createDave Arter2016-07-19-12/+3
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-1/+1
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Simplifed "confirmation-header" for success pages.Zarino Zappia2015-02-19-2/+2
|
* Add a who are you trying to contact option to contact formStruan Donald2014-04-15-1/+110
| | | | | | | | | | | In order to try and cut down on people mistakingly using this form to try and contact their council all some 'who are you trying to contact' options to the form that display appropriate messaged unless the 'FMS team option is selected. Add the validation code for this in the cobrand module. Fixes #41
* Have a whole fake mapit (for #182) that works if MAPIT_URL is set accordingly.Matthew Somerville2012-07-13-18/+19
| | | | | | | | | Setting MAPIT_URL to .../fakemapit/ will then return one area, ID 161 and type ZZZ, whatever co-ordinate it is given. This means the default area type is now ZZZ, the UK specific types are moved into the UK cobrands, and the tests updated accordingly to still function (they assume UK-ness a lot, so probably need an ALLOWED_COBRANDS entry of "fixmystreet: 'localhost'" and for your host's domain to show fixmystreet too).
* fix date format for dates that are now from a previous yearStruan Donald2012-01-06-3/+3
|
* extra test for auto flaggingStruan Donald2011-08-09-1/+3
|
* auto flag reported problemsStruan Donald2011-08-09-0/+9
|
* Tidy up some strings for translation, remove some migrated code.Matthew Somerville2011-06-06-8/+8
|
* Fix broken contact form report handling, stop HTML injection, and remove old ↵Matthew Somerville2011-06-03-4/+30
| | | | contact code.
* update reportingStruan Donald2011-05-26-4/+50
|
* use c->send_email on contact page and add more testsStruan Donald2011-05-25-3/+12
|
* display correct error messages and test for bad problem idsStruan Donald2011-05-13-9/+37
|
* placeholder for email sending codeStruan Donald2011-05-13-0/+18
|
* contact form validation and post submission pageStruan Donald2011-05-13-0/+76
|
* tests/fixes for anonymous reportsStruan Donald2011-05-13-36/+58
|
* perltidyStruan Donald2011-05-13-17/+17
|
* make problem report date prettyStruan Donald2011-05-13-0/+2
|
* display problem and update information as appropriateStruan Donald2011-05-13-0/+34
|
* fix contact page titleStruan Donald2011-05-13-1/+1
|
* start adding contact formStruan Donald2011-05-13-0/+14