mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \Wt\Core\Templater\Shell $this
|
||||
* @var \Wt\Core\Form\Field\DefaultField $field
|
||||
*/
|
||||
use Wt\Core\Templater\Tools;
|
||||
|
||||
$bLabel = mb_strlen($field->getLabel());
|
||||
$labelAttrs = [];
|
||||
if(mb_strlen($field->getId())){
|
||||
$labelAttrs['for'] = $field->getId();
|
||||
}
|
||||
if($bLabel){?><label <?=Tools::getAttrByArray($labelAttrs)?>><?=$field->getLabel()?></label>
|
||||
<?}
|
||||
$inputAttributes = $field->getAttributes();
|
||||
$inputAttributes['data-dirty'] = $field->isDirty()?'true':'false';
|
||||
unset($inputAttributes['multiple']);
|
||||
if($field->isMultiple()){
|
||||
|
||||
}
|
||||
?><textarea <?=Tools::getAttrByArray($inputAttributes)?>><?=$field->getValue()?></textarea><?
|
||||
echo "\n\r";
|
||||
@@ -0,0 +1 @@
|
||||
<?php
|
||||
@@ -0,0 +1 @@
|
||||
<?php
|
||||
Reference in New Issue
Block a user