first
This commit is contained in:
18
app/active_fields/TextActiveField.php
Normal file
18
app/active_fields/TextActiveField.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Itguild\App\active_fields;
|
||||
|
||||
use Itguild\Form2\ActiveField;
|
||||
|
||||
class TextActiveField extends ActiveField
|
||||
{
|
||||
|
||||
public function fetchField(): string
|
||||
{
|
||||
$html = '';
|
||||
$html .= "</br><label for='" . $this->data['id'] . ">" . $this->data['label'] . "</label>";
|
||||
$html .= "<input type='" . $this->data['type'] . "' name='" . $this->data['id'] . "' id='" . $this->data['id'] . "' class='" . $this->data['class'] . "' >";
|
||||
return $html;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user