input.hidden.php
Скрытое поле
Вызывается из:
Смотрите описание Cms\Root\Form\Field\Hidden
Исходный код
<?php
if ($Field->name) {
$attributes = $Field->getInputAttributes(array(
'type' => 'hidden',
'name' => $Field->name,
'value' => $Field->v(),
'placeholder' => strval($Field->placeholder) !== '' ? htmlspecialchars($Field->placeholder) : null,
'required' => $Field->required ? '' : null,
'readonly' => $Field->readonly ? '' : null,
'disabled' => $Field->disabled ? '' : null,
'id' => $Field->id('-input'),
));
print '<input';
foreach ($attributes as $attributeName => $attributeValue) if ($attributeValue !== null) print ' ' . $attributeName . '="' . $attributeValue . '"';
print '>';
} else {
print "\n";
}
?>