1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 05:16:03 +02:00

feat(core): cleanup Forms #218 #186

This commit is contained in:
Awilum
2019-08-27 13:41:59 +03:00
parent dfa4144fd9
commit eb3f978c96

View File

@@ -195,9 +195,9 @@ class Forms
protected function templateSelectField($name, $options, $value, $property)
{
$_templates_list = $this->flextype['themes']->getTemplates($this->flextype['registry']->get('settings.theme'));
$_templates_list = $this->flextype['themes']->getTemplates($this->flextype['registry']->get('settings.theme'));
$options = [];
$options = [];
if (count($_templates_list) > 0) {
foreach ($_templates_list as $template) {
@@ -209,9 +209,7 @@ class Forms
}
}
$form_element = Form::select($name, $options, $value, $property['attributes']);
return $form_element;
return Form::select($name, $options, $value, $property['attributes']);
}
protected function selectField($name, $options, $value, $property)