12 lines
465 B
PHP
12 lines
465 B
PHP
|
|
<?
|
||
|
|
use ui\input\Input;
|
||
|
|
|
||
|
|
$label = $this->label;
|
||
|
|
$placeholder = $c = $this->options[Input::PLACEHOLDER];
|
||
|
|
|
||
|
|
?>
|
||
|
|
<div data-input="checkbox" data-name="<?=$this->name;?>" <?=$this->getDataInit();?>>
|
||
|
|
<?= ($label)?'<div class="label">'.$label.'</label></div>':'';?>
|
||
|
|
<label><input value="<?=h($this->value);?>" type="checkbox" value="<?=$this->value;?>" <?=$this->options[Input::CHECKED]?'checked="checked"':'';?>><?= ($placeholder)?$placeholder:'';?></label>
|
||
|
|
|
||
|
|
</div>
|