Commit Graph

120 Commits

Author SHA1 Message Date
Damian Mooyman
000b024055 Merge pull request #364 from frankmullenger/emailobject-356
MINOR: New email object for each recipient
2015-10-19 12:56:38 +13:00
Frank Mullenger
5f5cedb3d1 MINOR: New email object for each recipient
Creating a new email object for each recipient so that no state from the previous email object is carried through. Fixes silverstripe/silverstripe-userforms#356.
2015-10-02 11:34:50 +13:00
Peter Thaleikis
96fd658c0d adding some spaces for better readability in 2015-09-24 10:40:30 +12:00
Frank Mullenger
2cea1ced31 Update UserDefinedForm.php
Casting to integer to prevent potential SQL injection.
2015-09-21 08:37:12 +12:00
Peter Thaleikis
fc0483454f remove trailing spaces in the codebase 2015-09-20 17:08:40 +12:00
Damian Mooyman
1bf826d34e BUG Fix displayrule versioning 2015-09-18 11:07:58 +12:00
Peter Thaleikis
20cc915236 remove trailing spaces in the codebase 2015-09-11 10:20:06 +12:00
Christopher Pitt
b383846790 Merge pull request #331 from spekulatius/adding-space
adding space
2015-09-11 07:30:32 +12:00
Peter Thaleikis
3434cb2cec converting spaces as intentation to tabs 2015-09-11 00:08:13 +12:00
Peter Thaleikis
b8cc50c676 adding space 2015-09-11 00:08:09 +12:00
Christopher Pitt
4556f1f38c Spelling correction to "authenication" 2015-08-31 14:49:16 +12:00
Damian Mooyman
d1ad43e23f BUG Fix CSV export with periods in the name 2015-08-31 11:17:18 +12:00
David Craig
da400e8306 Fix multiple submit buttons being used 2015-08-24 10:38:02 +12:00
Damian Mooyman
543d79c326 Merge pull request #309 from scott1702/master
place gridfield buttons in button row
2015-08-21 14:43:25 +12:00
scott1702
2726fda72e place gridfield buttons in button row 2015-08-21 13:41:00 +12:00
Damian Mooyman
09553a1293 BUG Fix <form > tag being invalidly nested inside <p> tag 2015-08-21 12:26:52 +12:00
David Craig
9907ac604f API support for conditional steps 2015-08-18 10:51:03 +12:00
Damian Mooyman
0a8c7636d7 BUG Fix double encoding of validation errors 2015-08-17 17:23:45 +12:00
Damian Mooyman
9535a2acd7 BUG Fix issues when adding new formfields:
- Page no longer reloads on new field
 - Preview mode no longer errors on new field
 - Sort order of field dropdown is ordered
 - Default field type to Text field instead of abstract base class
 - Ensure fields named 'Field' is invalidated.
2015-08-17 13:56:16 +12:00
Christopher Pitt
85f47e3623 Added segment field 2015-08-14 15:39:30 +12:00
Damian Mooyman
a1d7feedae Update form editor colours 2015-08-14 14:51:56 +12:00
Damian Mooyman
f1c408d3f4 BUG Fix form submission
BUG Fixed display logic
2015-08-13 18:57:23 +12:00
Damian Mooyman
7107ad7072 API Formfield validation for nested groups and pages 2015-08-13 12:24:54 +12:00
scott1702
b483a10566 Cms styling for fieldgroups 2015-08-12 16:24:06 +12:00
Damian Mooyman
9f112e3b23 Add "Add page break" button
Fix unit test failures
2015-08-11 14:18:46 +12:00
David Craig
65651387e0 Update step rendering 2015-08-11 10:07:13 +12:00
David Craig
10c86bcbc1 Removed unused js 2015-08-10 13:18:50 +12:00
David Craig
e0aa7cd812 Add lightweight base form styling 2015-08-10 13:17:48 +12:00
David Craig
51864a6308 API new form editor 2015-08-10 13:15:59 +12:00
Damian Mooyman
08b2e573f4 Merge pull request #283 from open-sausages/feature/test-recipient-email
Display form fields correctly in email preview
2015-07-22 14:09:42 +12:00
David Craig
5b06d80925 Display form fields correctly in email preview 2015-07-22 14:01:12 +12:00
David Craig
2e5de487c8 Add option for displaying error messages at the top of the form 2015-07-22 09:19:48 +12:00
Damian Mooyman
d17e8a773f API Custom rules for email recipients 2015-07-21 10:30:46 +12:00
David Craig
350fdee850 Add custom email templates
- Developers can add email templates via a configurable path.
  - Content editors can select the email templates via a dropdown.
  - Content editors can embed HTML content in emails.
  - Content editors can preview HTML emails.
  - Content editors can use field values (merge fields) in emails.
2015-07-21 08:32:34 +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