meraproject/module/ui/input/switch_ios/model.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

23 lines
723 B
PHP

<?
namespace ui\input;
class Switch_Ios extends Input {
public function render(array $opt = array()): string
{
return '
<div class="form-group" data-input="checkbox" data-name="'.$this->name.'" '.$this->getDataInit().'>
'.(($c = $this->options[Input::PLACEHOLDER])?'<label>'.$c.'</label>':'').'
<div class="mt-2">
<div class="form-check form-check-switchery form-check-inline">
<label class="form-check-label">
<input type="checkbox" class="form-check-input-switchery" name="'.$this->name.'" '.($this->value?'checked':'').'>
'.$this->label.'
</label>
</div>
</div>
</div>';
}
}