Commit Graph

492 Commits

Author SHA1 Message Date
oluwaseun Olorunsola
bdb262fca4 Fix custom select default value cannot be changed on Manage subscription page
[MAILPOET-3894]
2021-11-10 09:42:15 +01:00
Pavel Dohnal
7c005cd1b8 Move styles to scss file
Co-authored-by: Oluwaseun Olorunsola <seun.olorunsola@automattic.com>

[MAILPOET-3279]
2021-11-08 15:42:28 +01:00
Pavel Dohnal
b30a8de9ca Fix default confirmation message missing in new forms
[MAILPOET-3853]
2021-11-08 09:58:06 +01:00
oluwaseun Olorunsola
2d32e5013e Fixed uncheck status not saved in Manage subscriptions page
Please note: Mandatory (required) checkbox Fields can not be Empty. This means the checkbox field can not be uncheck by the user. The admin can still control the status of the checkbox

[MAILPOET-3858]
2021-11-03 11:30:52 +01:00
wxa
43ddb4bdaa Fix 'Create a new form' link in widget
[MAILPOET-3849]
2021-10-20 10:20:01 +02:00
Brezo Cordero
3812d6c15e Select first form in list
[MAILPOET-3847]
2021-10-20 09:30:55 +02:00
Brezo Cordero
51e03911b8 Default to first active form if widget form id not present
[MAILPOET-3847]
2021-10-20 09:30:55 +02:00
Jan Lysý
1701229a10 Add a full stop to messages where was missing
[MAILPOET-3846]
2021-10-18 11:03:50 +02:00
Pavel Dohnal
ec76a5c868 Check if the form id is missing in the widget
[MAILPOET-3837]
2021-09-29 12:55:27 +02:00
Jan Lysý
e9a4c6e090 Fix incompatibility after Doctrine refactor
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
2af076ab83 Delete FormFactory
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Pavel Dohnal
942d756b9f Use Doctrine in form editor
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
ca88c96470 Refactor Widget to use Doctrine
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
aced9ce0b7 Refactor form renderer to accept Form Entity
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Jan Lysý
f9ba4623c6 Create custom validation for names
I had to use a custom validation because we want to different
error message for each part of validation.
I didn't find a better solution for Parsley library.

[MAILPOET-3786]
2021-09-20 09:17:43 +02:00
Pavel Dohnal
21839fc30b Fix indentation of multiline function declarations
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
cdda3480ca Make all constructor signatures multiline
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00
Jan Lysý
44f19b1b4c Load custom fonts in chunks
We have a conflict with WooCommerce Payments plugin. When the file with custom fonts is bigger than 10kB, the payment form isn't loaded.

[MAILPOET-3791]
2021-09-13 10:50:15 +02:00
Rostislav Wolny
abc965e143 Add support for colors in column block in form editor
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
8d0d2e168b Add support for custom padding in form column
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
3700003e15 Don't render form column width style if only unit is saved
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
e5c90821be Add support for isStackedOnMobile for columns
[MAILPOET-3564]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
bd41098e5e Fix saving and rendering form columns widths
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Jan Lysý
a9621875bd Fix phpstan errors from new version
[MAILPOET-3725]
2021-08-16 15:56:39 +02:00
Brezo Cordero
4120839102 Remove unnecessary casting to string on getNamesOfFormsForSegments
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Brezo Cordero
d9186e4230 Prevent deleting a list if attached to a form
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Jan Lysý
d9f4a3f1d4 Add filter for displaying form on supported post types
[MAILPOET-3639]
2021-08-11 14:26:06 +02:00
Jan Lysý
e468663d15 Add job_listing into supported post types for forms
[MAILPOET-3639]
2021-08-11 14:26:06 +02:00
Rostislav Wolny
65b834a9ff Update renamed NotCamelCaps rule
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Jan Lysý
e7a0355ba1 Create FormMessageController
[MAILPOET-3643]
2021-06-07 14:14:50 +02:00
Pavel Dohnal
9174bbb6fd Refactor form bulk action to docrine
[MAILPOET-3630]
2021-06-02 14:09:12 +02:00
Pavel Dohnal
13734f3e4e Use a filter for form display
[MAILPOET-3385]
2021-05-24 12:44:12 +02:00
Rostislav Wolny
e8c7b7e6b8 Fix form custom CSS rendering
[MAILPOET-3596]
2021-05-05 09:43:35 +02:00
Pavel Dohnal
65c9bad64c Fix pre-selecting date value
[MAILPOET-3470]
2021-04-15 15:47:57 +02:00
Rodrigo Primo
5ceb084c64 Refactor Forms::delete() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
49f0c054fd Refactor Forms::restore() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
e054f05222 Refactor Forms::trash() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
b3f82cccc5 Refactor Forms::duplicate() to use Doctrine instead of Paris
[MAILPOET-3038]
2021-04-07 09:48:53 +02:00
Rodrigo Primo
4b5f044f6b Use __() instead of \MailPoet\WP\Functions::__()
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
Rodrigo Primo
5f262e6b04 Update comment to explain empty methods
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
Rodrigo Primo
a18ae06f8a Rewrite Forms::listing() API to use Doctrine
This commit replaces the usage of Paris with Doctrine inside
MailPoet\API\JSON\v1\Forms::listing(). It also introduces a new class
MailPoet\Form\Listing\FormListingRepository that is used by listing() to
prepare the query that is executed by Doctrine and a new
MailPoet\API\JSON\ResponseBuilders\FormsResponseBuilder::buildForListing()
method to prepare the response that is returned by listing(). A few tests were
adjusted and new tests were added for the new class.

[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
wxa
3fd379a72d Hide recaptcha in manage subscription form
[MAILPOET-3459]
2021-03-11 09:03:02 +01:00
Danny Cooper
cfbe662e19 Update CustomFonts.php
WordPress automatically appends -css to the handle, so at the moment it's being output like this: 

`<link rel='stylesheet' id='mailpoet_custom_fonts_css-css'`
2021-03-03 15:29:56 +01:00
Rostislav Wolny
438c9a7469 Alter data validation regexp so that is not malformed by wptexturize
[MAILPOET-3440]
2021-03-01 10:08:08 +01:00
Rostislav Wolny
6bf62ee90a Fix links in form checkbox label
[MAILPOET-3433]
2021-02-17 11:00:15 +01:00
Rostislav Wolny
76279d3148 Fix form input validations
[MAILPOET-3415]
2021-02-15 19:05:14 +01:00
Rostislav Wolny
6a63ac26c7 Fix naming sanitiser > sanitizer
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
6d074e37e9 Fix image caption rendering in for editor
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
c1aef842d2 Fix rendering issues in form blocks
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
6e911ffd1d Render form styles in twig template correctly
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00