Commit Graph

53 Commits

Author SHA1 Message Date
45b22f62d7 Fix create new form link in WP widgets settings [MAILPOET-1452] 2018-07-19 16:52:42 +02:00
82baa6cdbe Clarify MP version in form widget
[MAILPOET-1436]
2018-07-10 16:44:41 +01:00
6e94db24a2 minor fixes 2018-01-15 12:43:48 +00:00
5bf532a750 minor UI fix 2018-01-15 10:47:26 +00:00
c63b7d9b91 handling multiple instances of reCaptcha 2018-01-15 10:47:25 +00:00
a8052c118a fixing minor issues and adding unit test 2018-01-15 10:46:07 +00:00
2228f60e2a adding recaptcha to form wiget 2018-01-15 10:46:06 +00:00
caa0623112 handling recaptcha on the PHP side 2018-01-15 10:46:06 +00:00
72193fefae Loads dependencies only when subscription form (shortcode or widget) is
present
2018-01-09 14:16:04 +00:00
d70c6ce453 fix public.js not included when only shortcode is used 2018-01-09 14:16:04 +00:00
554dbb8dda Initializes dependencies only when widget is active 2017-12-09 19:53:12 -05:00
d13aa67a07 Centralizes widget logic in one place
Cleans up code
2017-12-09 19:45:19 -05:00
316fa91a10 Moves AccessControl initialization outside of API to Initializer 2017-08-23 11:28:09 -04:00
bf7e7e414f Adds hook to modify rendered form widget 2017-08-15 09:49:38 +02:00
56eac1ae86 Add missing callbacks to ajax calls
[MAILPOET-982]
2017-07-06 13:06:14 +01:00
398d7d3d80 Moves current API under JSON namespace 2017-05-16 20:56:54 -04:00
b549f83422 Updates form subscription class to use the main API class instead of calling directly API endpoint
Modifies forms to pass api_version
Modifies forms to pass store form-specific values (e.g., form_id, email) inside a separate data array
2017-04-19 15:38:16 -04:00
9c1cbba163 Fix 'Create a new form' link on widgets page having no feedback [MAILPOET-691] 2017-02-08 13:30:49 +03:00
b7ef191641 Remove leading slashes in imports [MAILPOET-764] 2017-01-25 10:22:27 +03:00
2220a13399 Remove unused imports [MAILPOET-764] 2017-01-25 10:14:38 +03:00
b046c9ea4b Gracefully catches Twig exceptions and displays error messages
MAILPOET-667 #time 3h
2016-11-10 16:33:50 +02:00
21b4187a11 added missing text domains in _e functions 2016-10-05 10:26:59 +02:00
7fbf84db1f converted text domain to string instead of constant 2016-09-30 09:58:26 +02:00
42202f676a updated Env::plugin_name to constant for text domain 2016-09-27 14:54:23 +02:00
ba6198f956 added textdomain to __() calls 2016-09-27 14:53:44 +02:00
a328d3b48a avoid duplicating code 2016-09-23 12:56:27 +02:00
6091751a4b Closes issue 480 2016-09-21 11:54:16 +02:00
49b65729db update 14 July 2016 2016-07-14 20:58:12 +02:00
48f0c03425 Fix spacing between control structure and opening parenthesis 2016-06-30 18:46:33 +03:00
08e6430c7d June 8 2016 Copy review 2016-06-08 17:02:50 +02:00
375e70d84b success messages in both context when subscribing to a form 2016-04-21 12:39:14 +02:00
42d586610e form subscription only using Router now 2016-04-20 16:59:18 +02:00
3281ac390e Improved segment selection errors in form editor
- improved error display to make it more obvious (added border on select2 on error)
2016-03-22 17:25:25 +01:00
5121dbe0c8 Form Editor Round 3
- added prefix to form styles so that it does not conflict when multiple forms are on the same page
- added validation on form save for segments
2016-02-12 12:45:07 +01:00
a2ef62302f More Unit Tests + Initializer fix
- added unit test for Router\Forms
- updated unit test for Model\Segment to reflect changes
2016-02-02 17:22:11 +01:00
3689545589 Default page on install + Setting::setValue() dot notation + cleanup 2016-01-15 13:37:37 +01:00
9fb04bc3c0 first round of fixes #255 2015-12-07 16:54:08 +01:00
893231e8e5 List selection fix 2015-11-09 14:19:59 +01:00
b12f7f29de Custom fields
- added listing of custom fields in form editor
- ability to delete a custom field
- mades changes to the form editor in order to accomodate for the new custom fields system
- fix form editor bugs
- cleanup
2015-11-06 16:09:09 +01:00
5473f94e24 List selection & subscribe
- fixed list selection widget (form editor & rendered form)
- ajax subscription works (minus sending the confirmation email)
- bug fixes / polishing / refactoring / cleanup
2015-11-06 16:09:09 +01:00
a31dce6226 fixed list selection widget + started form submission 2015-11-06 16:09:09 +01:00
c2e7513381 Form editor
- new form with default data
- load/save in form editor
- widgets -> settings form
- widgets -> shortcode for subscribers count
- widgets -> form rendering
- added useful filters to Subscribers (for status related search)
- refactor & cleanup
2015-11-06 16:09:09 +01:00
907fe585de add Form renderer and fixed Newsletter saving issue 2015-11-06 16:08:16 +01:00
311acd1ee0 updated validation data attributes 2015-08-21 14:23:43 +02:00
f2cecf97a9 Form submit fix + default styles 2015-08-21 14:08:35 +02:00
1ff7e3f4be Form Subscription
- improved MailPoet ajax to fix token issue
- added js validation and ajax submit in public.js
- add util security to generate tokens
- updated router to use new util security
- added jquery-validation module
- update public config in webpack config
- added error messages in form
2015-08-20 21:02:04 +02:00
c883de9aa8 Form Widget
- added public js code to handle validation and ajax submit
- added widget initializer
- added form widget
- added acceptance test for adding the widget
2015-08-20 16:52:51 +02:00
1ead513437 Revert "Form Widget" 2015-08-13 16:07:46 +02:00
8ec5bd4ffd refactor form widget to remove pure HTML 2015-08-13 15:37:54 +02:00
6b46ef7fea Form Widget validation
- reorganized jquery validation lib to include languages
- added Widget initializer class
- fixed cache method in initializer
- added widget front JS to validate and submit (ajax / post)
2015-08-13 12:26:11 +02:00