aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/contact.t
Commit message (Collapse)AuthorAgeLines
* 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