Commit Graph

37 Commits

Author SHA1 Message Date
Vlad
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
Alexey Stoletniy
9c1cbba163 Fix 'Create a new form' link on widgets page having no feedback [MAILPOET-691] 2017-02-08 13:30:49 +03:00
Alexey Stoletniy
b7ef191641 Remove leading slashes in imports [MAILPOET-764] 2017-01-25 10:22:27 +03:00
Alexey Stoletniy
2220a13399 Remove unused imports [MAILPOET-764] 2017-01-25 10:14:38 +03:00
Tautvidas Sipavičius
b046c9ea4b Gracefully catches Twig exceptions and displays error messages
MAILPOET-667 #time 3h
2016-11-10 16:33:50 +02:00
Jonathan Labreuille
21b4187a11 added missing text domains in _e functions 2016-10-05 10:26:59 +02:00
Jonathan Labreuille
7fbf84db1f converted text domain to string instead of constant 2016-09-30 09:58:26 +02:00
Jonathan Labreuille
42202f676a updated Env::plugin_name to constant for text domain 2016-09-27 14:54:23 +02:00
Jonathan Labreuille
ba6198f956 added textdomain to __() calls 2016-09-27 14:53:44 +02:00
Jonathan Labreuille
a328d3b48a avoid duplicating code 2016-09-23 12:56:27 +02:00
Jonathan Labreuille
6091751a4b Closes issue 480 2016-09-21 11:54:16 +02:00
Kiefer Conrad
49b65729db update 14 July 2016 2016-07-14 20:58:12 +02:00
Tautvidas Sipavičius
48f0c03425 Fix spacing between control structure and opening parenthesis 2016-06-30 18:46:33 +03:00
Kiefer Covia
08e6430c7d June 8 2016 Copy review 2016-06-08 17:02:50 +02:00
Jonathan Labreuille
375e70d84b success messages in both context when subscribing to a form 2016-04-21 12:39:14 +02:00
Jonathan Labreuille
42d586610e form subscription only using Router now 2016-04-20 16:59:18 +02:00
Jonathan Labreuille
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
Jonathan Labreuille
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
Jonathan Labreuille
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
Jonathan Labreuille
3689545589 Default page on install + Setting::setValue() dot notation + cleanup 2016-01-15 13:37:37 +01:00
Jonathan Labreuille
9fb04bc3c0 first round of fixes #255 2015-12-07 16:54:08 +01:00
Jonathan Labreuille
893231e8e5 List selection fix 2015-11-09 14:19:59 +01:00
Jonathan Labreuille
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
Jonathan Labreuille
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
Jonathan Labreuille
a31dce6226 fixed list selection widget + started form submission 2015-11-06 16:09:09 +01:00
Jonathan Labreuille
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
Jonathan Labreuille
907fe585de add Form renderer and fixed Newsletter saving issue 2015-11-06 16:08:16 +01:00
Jonathan Labreuille
311acd1ee0 updated validation data attributes 2015-08-21 14:23:43 +02:00
Jonathan Labreuille
f2cecf97a9 Form submit fix + default styles 2015-08-21 14:08:35 +02:00
Jonathan Labreuille
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
Jonathan Labreuille
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
Marco
1ead513437 Revert "Form Widget" 2015-08-13 16:07:46 +02:00
Jonathan Labreuille
8ec5bd4ffd refactor form widget to remove pure HTML 2015-08-13 15:37:54 +02:00
Jonathan Labreuille
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
Jonathan Labreuille
bbe4d1d853 fixed 80 char limit line 2015-08-12 22:44:12 +02:00
Jonathan Labreuille
b8b349fc20 added submit button 2015-08-12 22:41:13 +02:00
Jonathan Labreuille
79cea39238 added basic form widget 2015-08-12 22:37:37 +02:00