2021-09-10 18:02:25 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace App\Views\Components\Forms;
|
|
|
|
|
|
|
|
class Helper extends FormComponent
|
|
|
|
{
|
|
|
|
/**
|
2021-09-15 17:58:21 +02:00
|
|
|
* @var 'default'|'error'
|
2021-09-10 18:02:25 +02:00
|
|
|
*/
|
|
|
|
protected string $type = 'default';
|
|
|
|
|
|
|
|
public function render(): string
|
|
|
|
{
|
2021-11-05 15:36:34 +01:00
|
|
|
$class = 'text-skin-muted';
|
2021-09-10 18:02:25 +02:00
|
|
|
|
|
|
|
return <<<HTML
|
2021-09-20 17:45:38 +02:00
|
|
|
<small id="{$this->id}" class="{$class} {$this->class}">{$this->slot}</small>
|
2021-09-10 18:02:25 +02:00
|
|
|
HTML;
|
|
|
|
}
|
|
|
|
}
|