Commit Graph

89 Commits

Author SHA1 Message Date
Myles Beardsmore
765a6b4130 Removed setter function
Removed setter function to reduce overhead and be more inline with current standards
2015-07-02 15:32:45 +12:00
Myles Beardsmore
9594625115 Added config setting for warning message. Set warning message to false by default 2015-06-23 23:06:09 +12:00
Myles Beardsmore
a31f717774 Added warning message to page if no email recipients are configured. Also updated lang files to include the warning message. 2015-06-18 09:35:02 +12:00
Damian Mooyman
64b0d6203f BUG Fix compat with userforms/translatable 2015-05-29 15:49:36 +12:00
Will Rossiter
15f1df242b Merge pull request #258 from xini/fix-plain-text-email-format
place colon after field name for better usability of plain text emails
2015-04-28 17:26:19 +12:00
Michael
8ec1191da0 Wrapping getCMSFields fields with beforeUpdateCMSFields 2015-04-20 11:28:15 +09:30
Florian Thoma
d9dde81657 place colon after field name for better usability of plain text emails 2015-04-12 09:30:10 +10:00
Damian Mooyman
68b29e13e2 BUG Use correct api for assigning field value
BUG Fix encoding of cms add-option in js
ENHANCEMENT Sanitise literal HTML content
2015-02-23 11:41:23 +13:00
Will Rossiter
729318fc0a Merge pull request #241 from nhorstmeier/Bugfix_196
BUGFIX set email recipient on initial write()
2014-12-08 22:17:41 +13:00
David Craig
c33b8ddec1 Use $.prop() to query checkboxes 2014-12-03 13:59:42 +13:00
Will Rossiter
319d1972b1 FIX: Dropdowns not responding to conditional logic
Ensures the correct actions are listened for.
2014-12-02 19:49:03 +13:00
muskie9
7e92af61fd BUGFIX set email recipient on initial write()
This checks if the Form() relation ID is set, if not, then grab the current page from the session and use it's ID to get teh Editable Fields for dropdowns.

fixes #196
2014-12-01 14:46:02 -06:00
Will Rossiter
7a76626cd2 Redirecting to the form success message location for longer pages 2014-11-28 18:16:50 +13:00
John Learn
75858dab7a fix naming of gridfield so it works with translatable. 2014-10-21 12:52:43 -04:00
Will Rossiter
42932ea47f Add flags to configure use of cookies.
Adds 2 new flags to the CMS:

- DisableCsrfSecurityToken
- DisableAuthenicatedFinishAction

DisableAuthenicatedFinishAction disables the session check on the finish completed action as this normally validates the user correctly posted a form. This page is normally just basic content so requiring a session cookie is sometimes a hassle.

DisableCsrfSecurityToken allows security token to not be added to the form. Normally acceptable as forms don't usually alter the state of the database.
2014-07-27 20:51:23 +12:00
mikeyc7m
386eb363ad Use numericfield for EditableNumericField
Add support for minimum and maximum values
2014-07-24 21:39:07 +12:00
Liongold
dbb68258c5 Extra Space at line 1018
When a user chose the Plain Text option, the first field would have a blank space preceding the field name.
2014-07-12 17:52:16 +02:00
Will Rossiter
c77830bd2f Pass submission to finished action. 2014-07-12 09:43:52 +12:00
alex-dna
248ff61ebe Update UserDefinedForm.php
Add updateAfterProcess hook
2014-07-09 16:32:10 +12:00
Jean Spiteri
fead9d00c6 Implementing the Dynamic Subject feature 2014-07-06 17:33:50 +12:00
Will Rossiter
2767558ec8 Add SubmittedFormField::onPopulationFromField extension hook 2014-07-06 17:03:13 +12:00
Will Rossiter
817b80412d Merge pull request #202 from icecaster/patch-3
Fixed redirect url generation to work without trailing slashes
2014-07-06 16:52:21 +12:00
Will Rossiter
c4fe6beca5 Fix escaping of newline's in emails (Fixes #217) 2014-06-20 14:08:17 +12:00
Damian Mooyman
b7429910d5 API Support bulk editing tools if available 2014-06-18 13:10:31 +12:00
Damian Mooyman
5e0b7fdf7a Updated jquery validate plugin (dist files only)
Cleanup of validation script. Refactor into template to allow customisation of validation.
Explicitly set error element to 'span' as per new jquery-validate support
[ref: CWPBUG-110]
2014-05-22 10:34:11 +12:00
Jyrki Lilja
5689afb6b4 Require localization files for validator 2014-05-15 10:08:20 +03:00
Will Rossiter
cbeb7a82e8 FIX: field validation 2014-04-22 16:46:57 -07:00
Tim
3f7c57dcbf Fixed redirect url generation to work without trailing slashes
fix url redirect generation, 
using action parameter on $this->Link() to pass 'complete' action
to stop relying on trailing slashes.
2014-04-15 12:10:32 +12:00
Kirk Mayo
d5e50a9802 NEW: Allow form submission when tokens are disabled 2014-02-27 12:36:12 +13:00
Kirk Mayo
0f647009fa BUG: Do not add a default message for numeric and email fields
BUG: Corrected classname to use right object
2014-02-12 12:45:49 +13:00
Kirk Mayo
85c1f52c45 BUG: Fixes #189 default error message being shown 2014-02-12 12:14:56 +13:00
Will Rossiter
f90b997c29 Add updateEmailData hook 2014-02-03 12:10:44 +13:00
Kirk Mayo
54b4dca799 BUG: Fixing unit tests for form processing and adding unit test to check if form has been completed 2014-01-06 15:15:01 +13:00
Kirk Mayo
41b6e57e4c Merge branch 'master' of git://github.com/silverstripe/silverstripe-userforms into issue69 2014-01-06 13:37:55 +13:00
Will Rossiter
07c159cd61 NEW Allow EditableFileField to define destination folder. (Fixes #20, #177) 2013-12-20 21:08:00 +13:00
Kirk Mayo
4c88f1acf9 BUG: Fixes #69 by adding a check to see if the form has been processed 2013-12-19 15:56:53 +13:00
Jyrki Lilja
79682e7627 Fix #175. Bring back support checking for radio field values. 2013-12-03 20:10:17 +13:00
Sean Harvey
425881257b BUG Performance improvements of SubmittedFormField queries.
When there are a lot of SubmittedForm records the UserDefinedForm
page takes a long time to load in the CMS, and oftens exceeds
the PHP memory limit well beyond 128M.

Previously UserDefinedForm::getCMSFields() would build a list of
name => value from all SubmittedFormField records, but it would
do this twice, once in getCMSFields() and another time in
UserFormsGridFieldFilterHeader. It would also use the full ORM
to build this list, when all it needs is a map of the Name
and Value columns.

This fixes that to build the columns once in getCMSFields() using
DB::query() and it'll pass those columns along to
UserFormsGridFieldFilterHeader as well so it doesn't do it twice.
2013-11-13 17:08:49 +13:00
Jyrki Lilja
27d4476dec Add support for defining clear button text.
A new translations to be added:

- UserDefinedForm.CLEARBUTTON
- UserDefinedForm.TEXTONCLEAR
2013-11-11 15:32:44 +02:00
Ingo Schommer
aa0f8dbc7b Transifex support, js globalisation 2013-10-30 14:31:51 +01:00
Kirk Mayo
99de36afef BUG: Fixes #166 for SQL server which does not like empty strings as numerics 2013-10-17 15:01:41 +13:00
Mellisa Hankins
86992971f8 FEATURE: Add data and form arguments to Filtered Email Recipients
Most use cases for Filtered Email Recipients will probably require
using the data submitted via the user form.
2013-09-04 16:32:24 +10:00
Will Rossiter
55a5187f79 FIX: escape columns and tables for postgres 2013-07-15 21:52:30 +12:00
Will Rossiter
775eb66053 private statics for 3.1 2013-07-15 20:49:49 +12:00
Mateusz Uzdowski
eae3283e4c BUG Update allowed_actions on frontend Controller. 2013-07-09 15:20:19 +12:00
Freddy Vulto
4c7d50217f Fix duplication of custom rules. Rules may depend on fields. These internal field IDs in the targets now also get updated to their new names (GitHub: #19). 2013-06-04 21:48:29 +12:00
Sean Harvey
3f223b691b BUG Normal users (non-ADMIN) can't create any email recipients 2013-05-13 14:31:25 +12:00
ARNHOE
9ac8500b41 Fixed typo, live validation works again 2013-04-22 17:17:40 +03:00
Will Rossiter
a8ca0184c3 FIX: validate required fields even with rules. (Fixes #116) 2013-04-17 19:31:09 +12:00
Damian Mooyman
a0f48d636e BUG Fixed incorrect static member declaration
- Changed configurable static variables to private as per recent API updates to 3.1
- Use of statics as configurable variables replaced with config api usage
2013-04-10 11:35:58 +12:00