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

feat(core): remove media_select field from Forms #218 #186

This commit is contained in:
Awilum
2019-08-27 12:42:24 +03:00
parent a55bbda1e6
commit 02c119bd22

View File

@@ -163,10 +163,6 @@ class Forms
case 'visibility_select':
$form_element = $this->visibilitySelectField($form_element_name, ['draft' => __('admin_entries_draft'), 'visible' => __('admin_entries_visible'), 'hidden' => __('admin_entries_hidden')], (! empty($form_value) ? $form_value : 'visible'), $property);
break;
// Media select field
case 'media_select':
//$form_element = $this->mediaSelectField($form_element_name, $this->getMediaList($request->getQueryParams()['id'], false), $form_value, $property['attributes']);
break;
// Simple text-input, for single-line fields.
default:
$form_element = $this->textField($form_element_name, $form_value, $property);
@@ -246,11 +242,6 @@ class Forms
return Form::select($name, $options, $value, $property['attributes']);
}
protected function mediaSelectField($name, $options, $value, $property)
{
return Form::select($name, $options, $value, $property['attributes']);
}
protected function textField($name, $value, $property)
{
return Form::input($name, $value, $property['attributes']);