forms/templates/bootstrap5/Bootstrap5Template.php

37 lines
977 B
PHP
Raw Permalink Normal View History

2024-05-28 17:10:06 +03:00
<?php
namespace itguild\forms\form\templates\bootstrap5;
use itguild\forms\form\templates\Template;
class Bootstrap5Template extends Template
{
/**
* @return string
*/
public static function getInputTemplate(): string
{
return "<div class='form-group'>{label}{input}</div>";
}
public static function getTextAreaTemplate(): string
{
return "<div class='form-group'>{label}{textarea}</div>";
}
public static function getSelectTemplate(): string
{
return "<div class='form-group'>{label}{select}</div>";
}
public static function getRadioTemplate(): string
{
return "<div class='form-group'>{label}{radio}</div>";
}
public static function getCheckBoxTemplate(): string
{
return "<div class='form-group'>{label}{checkbox}</div>";
}
public static function getButtonTemplate(): string
{
return "<div class='form-group'>{label}{button}</div>";
}
}