sterzycom/panel/app/forms/editor/email.php

26 lines
598 B
PHP
Raw Normal View History

<?php
return function($page, $textarea) {
$form = new Kirby\Panel\Form(array(
'address' => array(
'label' => 'editor.email.address.label',
'type' => 'email',
'placeholder' => 'editor.email.address.placeholder',
'autofocus' => 'true',
'required' => 'true',
),
'text' => array(
'label' => 'editor.email.text.label',
'type' => 'text',
'help' => 'editor.email.text.help',
)
));
$form->data('textarea', 'form-field-' . $textarea);
$form->style('editor');
$form->cancel($page, 'show');
return $form;
};