Update form template "Relax" definition to display correctly

The popup and slide-in forms should not display email input and submit button in columns.
[MAILPOET-5047]
This commit is contained in:
Rostislav Wolny
2023-02-02 09:57:47 +01:00
committed by Aschepikov
parent d061d451a4
commit a76fb6c63a
2 changed files with 68 additions and 132 deletions

View File

@ -79,74 +79,42 @@ class Template7Popup extends FormTemplate {
'name' => 'Divider',
],
[
'type' => 'columns',
'body' => [
[
'type' => 'column',
'params' => [
'class_name' => '',
'vertical_alignment' => '',
'width' => '50',
],
'body' => [
[
'type' => 'text',
'params' => [
'label' => _x('Email Address', 'Form label', 'mailpoet'),
'class_name' => '',
'required' => '1',
'label_within' => '1',
],
'id' => 'email',
'name' => 'Email',
'styles' => [
'full_width' => '1',
'bold' => '0',
'background_color' => '#ffffff',
'font_color' => '#abb8c3',
'border_size' => '0',
'border_radius' => '6',
],
],
],
],
[
'type' => 'column',
'params' => [
'class_name' => '',
'vertical_alignment' => '',
'width' => '50',
],
'body' => [
[
'type' => 'submit',
'params' => [
'label' => _x('Get the latest deals', 'Form label', 'mailpoet'),
'class_name' => '',
],
'id' => 'submit',
'name' => 'Submit',
'styles' => [
'full_width' => '1',
'bold' => '1',
'gradient' => 'linear-gradient(180deg,rgb(0,159,251) 0%,rgb(29,123,164) 100%)',
'font_size' => '24',
'font_color' => '#ffffff',
'border_size' => '1',
'border_radius' => '6',
'padding' => '12',
'font_family' => 'Cairo',
],
],
],
],
],
'type' => 'text',
'params' => [
'vertical_alignment' => '',
'label' => _x('Email Address', 'Form label', 'mailpoet'),
'class_name' => '',
'text_color' => '',
'background_color' => '',
'gradient' => '',
'required' => '1',
'label_within' => '1',
],
'id' => 'email',
'name' => 'Email',
'styles' => [
'full_width' => '1',
'bold' => '0',
'background_color' => '#ffffff',
'font_color' => '#abb8c3',
'border_size' => '0',
'border_radius' => '6',
],
],
[
'type' => 'submit',
'params' => [
'label' => _x('Get the latest deals', 'Form label', 'mailpoet'),
'class_name' => '',
],
'id' => 'submit',
'name' => 'Submit',
'styles' => [
'full_width' => '1',
'bold' => '1',
'gradient' => 'linear-gradient(180deg,rgb(0,159,251) 0%,rgb(29,123,164) 100%)',
'font_size' => '24',
'font_color' => '#ffffff',
'border_size' => '1',
'border_radius' => '6',
'padding' => '12',
'font_family' => 'Cairo',
],
],
[

View File

@ -79,74 +79,42 @@ class Template7SlideIn extends FormTemplate {
'name' => 'Divider',
],
[
'type' => 'columns',
'body' => [
[
'type' => 'column',
'params' => [
'class_name' => '',
'vertical_alignment' => '',
'width' => '50',
],
'body' => [
[
'type' => 'text',
'params' => [
'label' => _x('Email Address', 'Form label', 'mailpoet'),
'class_name' => '',
'required' => '1',
'label_within' => '1',
],
'id' => 'email',
'name' => 'Email',
'styles' => [
'full_width' => '1',
'bold' => '0',
'background_color' => '#ffffff',
'font_color' => '#abb8c3',
'border_size' => '0',
'border_radius' => '6',
],
],
],
],
[
'type' => 'column',
'params' => [
'class_name' => '',
'vertical_alignment' => '',
'width' => '50',
],
'body' => [
[
'type' => 'submit',
'params' => [
'label' => _x('Get the latest deals', 'Form label', 'mailpoet'),
'class_name' => '',
],
'id' => 'submit',
'name' => 'Submit',
'styles' => [
'full_width' => '1',
'bold' => '1',
'gradient' => 'linear-gradient(180deg,rgb(0,159,251) 2%,rgb(29,123,164) 100%)',
'font_size' => '24',
'font_color' => '#ffffff',
'border_size' => '1',
'border_radius' => '6',
'padding' => '12',
'font_family' => 'Cairo',
],
],
],
],
],
'type' => 'text',
'params' => [
'vertical_alignment' => '',
'label' => _x('Email Address', 'Form label', 'mailpoet'),
'class_name' => '',
'text_color' => '',
'background_color' => '',
'gradient' => '',
'required' => '1',
'label_within' => '1',
],
'id' => 'email',
'name' => 'Email',
'styles' => [
'full_width' => '1',
'bold' => '0',
'background_color' => '#ffffff',
'font_color' => '#abb8c3',
'border_size' => '0',
'border_radius' => '6',
],
],
[
'type' => 'submit',
'params' => [
'label' => _x('Get the latest deals', 'Form label', 'mailpoet'),
'class_name' => '',
],
'id' => 'submit',
'name' => 'Submit',
'styles' => [
'full_width' => '1',
'bold' => '1',
'gradient' => 'linear-gradient(180deg,rgb(0,159,251) 2%,rgb(29,123,164) 100%)',
'font_size' => '24',
'font_color' => '#ffffff',
'border_size' => '1',
'border_radius' => '6',
'padding' => '12',
'font_family' => 'Cairo',
],
],
[