/var/www/vhosts/ihelp.ro/httpdocs/plugins/AdminLTE/src/View/Helper
Edit: /var/www/vhosts/ihelp.ro/httpdocs/plugins/AdminLTE/src/View/Helper/FormHelper.php (4739B)
'
',
'checkbox' => '
',
'checkboxFormGroup' => '{{label}}',
'checkboxWrapper' => '
{{label}}
',
'dateWidget' => '
{{label}} {{year}}{{month}}{{day}}{{hour}}{{minute}}{{second}}{{meridian}}
',
'error' => '
{{content}}',
'errorList' => '
',
'errorItem' => '
{{text}}',
'file' => '
',
'fieldset' => '
',
'formStart' => '
',
'formGroup' => '{{label}}{{input}}',
'hiddenBlock' => '
{{content}}
',
'control' => '
',
'input' => '
',
'inputSubmit' => '
',
'inputContainer' => '
{{content}}
',
'inputContainerError' => '
{{content}}{{error}}
',
'label' => '
',
'nestingLabel' => '{{hidden}}
',
'legend' => '
',
'multicheckboxTitle' => '
',
'multicheckboxWrapper' => '
',
'option' => '
',
'optgroup' => '
',
'select' => '
',
'selectMultiple' => '
',
'radio' => '
',
'radioWrapper' => '
{{label}}
',
'textarea' => '
',
'submitContainer' => '',
];
public function __construct(View $View, array $config = [])
{
$this->_defaultConfig['templates'] = array_merge($this->_defaultConfig['templates'], $this->templates);
parent::__construct($View, $config);
}
public function create($context = null, array $options = []): string
{
$options += ['role' => 'form'];
return parent::create($context, $options);
}
public function button(string $title, array $options = []): string
{
$options += ['escape' => false, 'secure' => false, 'class' => 'btn btn-success'];
$options['text'] = $title;
return $this->widget('button', $options);
}
public function submit(?string $caption = null, array $options = []): string
{
$options += ['class' => 'btn btn-success'];
return parent::submit($caption, $options);
}
/**
* {@inheritDoc}
*
* @see \Cake\View\Helper\FormHelper::input()
* @deprecated 1.1.1 Use FormHelper::control() instead, due to \Cake\View\Helper\FormHelper::input() deprecation
*/
public function input($fieldName, array $options = [])
{
$_options = [];
if (!isset($options['type'])) {
$options['type'] = $this->_inputType($fieldName, $options);
}
switch ($options['type']) {
case 'checkbox':
case 'radio':
case 'date':
break;
default:
$_options = ['class' => 'form-control'];
break;
}
$options += $_options;
return parent::control($fieldName, $options);
}
public function control(string $fieldName, array $options = []): string
{
$_options = [];
if (!isset($options['type'])) {
$options['type'] = $this->_inputType($fieldName, $options);
}
switch ($options['type']) {
case 'checkbox':
case 'radio':
case 'date':
break;
default:
$_options = ['class' => 'form-control'];
break;
}
$options += $_options;
return parent::control($fieldName, $options);
}
}