input.textarea.php
Поле «Многострочный текст»
Вызывается из:
Смотрите описание Cms\Root\Form\Field\Textarea
Исходный код
<?php
$attributes = $Field->getInputAttributes(array(
'grid-margin' => $Field->getInputMargin(),
'grid-width' => $Field->getInputWidth(),
'name' => $Field->name,
'placeholder' => strval($Field->placeholder) !== '' ? htmlspecialchars($Field->placeholder) : null,
'required' => $Field->required ? '' : null,
'readonly' => $Field->readonly ? '' : null,
'disabled' => $Field->disabled ? '' : null,
'class' => 'field-input textarea' . ($Field->type !== 'textarea' ? ' ' . $Field->type : ''),
'id' => $Field->id('-input'),
));
print '<textarea';
foreach ($attributes as $attributeName => $attributeValue) if ($attributeValue !== null) print ' ' . $attributeName . '="' . $attributeValue . '"';
print '>';
print $Field->v();
print '</textarea>';
?>