This commit is contained in:
kali
2024-03-20 18:31:49 +03:00
parent fd39285e41
commit 5ecf87df75
15 changed files with 207 additions and 76 deletions

View File

@ -37,11 +37,11 @@ class Checkbox extends BaseInput
$paramsString = $this->createParams($this->paramsArray);
$checkBox = "<input name='$this->name' type='checkbox' value='$this->value' $paramsString >";
$label = "";
if($this->hasLabel == true) {
$label = "<label>$this->labelTitle</label>";
}
$this->createLabel();
$this->html = str_replace('{input}', $checkBox, $this->inputTemplate->getInputTemplate());
$this->html = str_replace('{label}', $label, $this->html);
$this->html = str_replace('{label}', $this->labelString, $this->html);
return $this;
}