This commit is contained in:
kali
2024-03-20 17:46:58 +03:00
parent fb37605942
commit fd39285e41
18 changed files with 265 additions and 73 deletions

View File

@ -39,7 +39,12 @@ class TextInput extends BaseInput
$label = "";
$input = "<input name='$this->name' $paramsString >";
if($this->hasLabel == true) {
$label = "<label>$this->labelTitle</label>";
if(is_string($this->label)){
$label = "<label>$this->labelTitle</label>";
}
else {
$label = $this->create()->fetch();
}
}
$this->html = str_replace('{input}', $input, $this->inputTemplate->getInputTemplate());