Show subject and preview inputs on full-width

[MAILPOET-3089]
This commit is contained in:
Ján Mikláš
2020-09-22 16:45:06 +02:00
committed by Veljko V
parent 46e71e7acf
commit f0d88c44ad
6 changed files with 13 additions and 9 deletions

View File

@@ -42,3 +42,7 @@ label[for] {
.mailpoet-form-field + .mailpoet-form-field {
margin-top: $grid-gap;
}
.mailpoet-form-field-email-header {
grid-column: 1 / -1;
}

View File

@@ -173,7 +173,7 @@ class FormField extends React.Component {
}
return (
<div className={`form-field-row-${this.props.field.name}`}>
<div className={`mailpoet-form-field-${this.props.field.name} form-field-row-${this.props.field.name}`}>
{ label }
{ tip }
{ field }

View File

@@ -48,7 +48,7 @@ const configureSendPageOptions = (defaultFields, newsletter) => {
const emailOptions = newsletter.options;
const fields = [
{
name: 'info',
name: 'email-header',
label: null,
tip: null,
fields: [
@@ -65,7 +65,7 @@ const configureSendPageOptions = (defaultFields, newsletter) => {
{
name: 'preheader',
placeholder: MailPoet.I18n.t('preheaderLine'),
tip: MailPoet.I18n.t('preheaderLineTip1') + ' ' + MailPoet.I18n.t('preheaderLineTip2'),
tip: `${MailPoet.I18n.t('preheaderLineTip1')} ${MailPoet.I18n.t('preheaderLineTip2')}`,
type: 'text',
validation: {
'data-parsley-maxlength': 250,

View File

@@ -7,7 +7,7 @@ import GATrackingField from 'newsletters/send/ga_tracking.jsx';
let fields = [
{
name: 'info',
name: 'email-header',
label: null,
tip: null,
fields: [
@@ -24,7 +24,7 @@ let fields = [
{
name: 'preheader',
placeholder: MailPoet.I18n.t('preheaderLine'),
tip: MailPoet.I18n.t('preheaderLineTip1') + ' ' + MailPoet.I18n.t('preheaderLineTip2'),
tip: `${MailPoet.I18n.t('preheaderLineTip1')} ${MailPoet.I18n.t('preheaderLineTip2')}`,
type: 'text',
validation: {
'data-parsley-maxlength': 250,

View File

@@ -113,7 +113,7 @@ StandardScheduling.defaultProps = {
let fields = [
{
name: 'info',
name: 'email-header',
label: null,
tip: null,
fields: [
@@ -130,7 +130,7 @@ let fields = [
{
name: 'preheader',
placeholder: MailPoet.I18n.t('preheaderLine'),
tip: MailPoet.I18n.t('preheaderLineTip1') + ' ' + MailPoet.I18n.t('preheaderLineTip2'),
tip: `${MailPoet.I18n.t('preheaderLineTip1')} ${MailPoet.I18n.t('preheaderLineTip2')}`,
type: 'text',
validation: {
'data-parsley-maxlength': 250,

View File

@@ -6,7 +6,7 @@ import GATrackingField from 'newsletters/send/ga_tracking.jsx';
let fields = [
{
name: 'info',
name: 'email-header',
label: null,
tip: null,
fields: [
@@ -23,7 +23,7 @@ let fields = [
{
name: 'preheader',
placeholder: MailPoet.I18n.t('preheaderLine'),
tip: MailPoet.I18n.t('preheaderLineTip1') + ' ' + MailPoet.I18n.t('preheaderLineTip2'),
tip: `${MailPoet.I18n.t('preheaderLineTip1')} ${MailPoet.I18n.t('preheaderLineTip2')}`,
type: 'text',
validation: {
'data-parsley-maxlength': 250,