diff --git a/Classes/Domain/Model/Field.php b/Classes/Domain/Model/Field.php index a8e2ef3d5..d46034743 100644 --- a/Classes/Domain/Model/Field.php +++ b/Classes/Domain/Model/Field.php @@ -53,6 +53,8 @@ class Field extends AbstractEntity protected string $placeholder = ''; + protected string $placeholderRepeat = ''; + protected string $createFromTyposcript = ''; protected int $validation = 0; @@ -275,6 +277,16 @@ public function getPlaceholder(): string return $this->placeholder; } + public function setPlaceholderRepeat(string $placeholder_repeat): void + { + $this->placeholderRepeat = $placeholder_repeat; + } + + public function getPlaceholderRepeat(): string + { + return $this->placeholderRepeat; + } + public function setCreateFromTyposcript(string $createFromTyposcript): void { $this->createFromTyposcript = $createFromTyposcript; diff --git a/Configuration/TCA/tx_powermail_domain_model_field.php b/Configuration/TCA/tx_powermail_domain_model_field.php index fa767787e..d9792d4af 100644 --- a/Configuration/TCA/tx_powermail_domain_model_field.php +++ b/Configuration/TCA/tx_powermail_domain_model_field.php @@ -129,6 +129,8 @@ '--div--;LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:' . Field::TABLE_NAME . '.sheet1, ' . '--palette--;LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:' . Field::TABLE_NAME . '.validation_title;21, ' . + '--palette--;LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:' . + Field::TABLE_NAME . '.prefill_title;34, ' . '--palette--;Layout;43, ' . 'description, ' . '--palette--;LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:' . @@ -262,6 +264,10 @@ 'showitem' => 'feuser_value, create_from_typoscript', 'canNotCollapse' => 1, ], + '34' => [ + 'showitem' => 'placeholder, placeholder_repeat', + 'canNotCollapse' => 1, + ], '4' => [ 'showitem' => 'css, multiselect, datepicker_settings', ], @@ -815,6 +821,17 @@ 'default' => '', ], ], + 'placeholder_repeat' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:powermail/Resources/Private/Language/locallang_db.xlf:' . + Field::TABLE_NAME . '.placeholder_repeat', + 'config' => [ + 'type' => 'text', + 'cols' => '26', + 'rows' => '2', + 'default' => '', + ], + ], 'feuser_value' => [ 'l10n_mode' => 'exclude', 'exclude' => true, diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index a1fb18b8c..2412e1484 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -309,6 +309,9 @@ Placeholder + + Placeholder for repeat + Create from TypoScript (e.g. lib.fieldvalues) diff --git a/Resources/Private/Partials/Form/Field/Password.html b/Resources/Private/Partials/Form/Field/Password.html index c6daa3e93..30a274512 100644 --- a/Resources/Private/Partials/Form/Field/Password.html +++ b/Resources/Private/Partials/Form/Field/Password.html @@ -7,6 +7,7 @@ @@ -24,6 +25,7 @@ diff --git a/ext_tables.sql b/ext_tables.sql index 048855a49..642b31352 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -101,6 +101,7 @@ CREATE TABLE tx_powermail_domain_model_field ( text text NOT NULL, prefill_value text NOT NULL, placeholder text NOT NULL, + placeholder_repeat text NOT NULL, create_from_typoscript text NOT NULL, validation int(11) DEFAULT '0' NOT NULL, validation_configuration varchar(255) DEFAULT '' NOT NULL,