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

@ -38,17 +38,11 @@ class TextInput extends BaseInput
$paramsString = $this->createParams($this->paramsArray);
$label = "";
$input = "<input name='$this->name' $paramsString >";
if($this->hasLabel == true) {
if(is_string($this->label)){
$label = "<label>$this->labelTitle</label>";
}
else {
$label = $this->create()->fetch();
}
}
$this->createLabel();
$this->html = str_replace('{input}', $input, $this->inputTemplate->getInputTemplate());
$this->html = str_replace('{label}', $label, $this->html);
$this->html = str_replace('{label}', $this->labelString, $this->html);
return $this;
}