Sindbad~EG File Manager
<?php // $file = /home/sarayaglobal/sarayamystair.in/plugins/system/yooessentials/modules/form/config/form-fields.json
return [
'fieldname_js' => [
'type' => 'yooessentials-form-tags'
],
'fieldname_tags' => 'Use the <a id="yooessentials-form-show-control-names" href="#">form fields</a> names as placeholders, those will be replaced by the submited data during the action execution. E.g. <code>{comment}</code>.',
'action_conditions' => [
'label' => 'Execution',
'text' => 'Conditions',
'type' => 'button-panel',
'panel' => 'yooessentials-access',
'description' => 'Set a condition to execute the action depending on the date, user, language, and others.'
],
'control_icon' => [
'label' => 'Icon',
'description' => 'Pick an optional icon.',
'type' => 'icon'
],
'control_name' => [
'label' => 'Name',
'description' => 'A control name to identify the field.',
'type' => 'yooessentials-form-control'
],
'control_label' => [
'label' => 'Label',
'description' => 'An optional label to be associated with the field.'
],
'control_error_message' => [
'label' => 'Error Message',
'description' => 'Override the default error message. Use <code>{fieldlabel}</code> as placeholder for the field label.'
],
'control_value' => [
'label' => 'Value',
'description' => 'A predefined inputed value.'
],
'control_required' => [
'text' => 'Set as required',
'type' => 'checkbox'
],
'control_readonly' => [
'text' => 'Set as read only',
'type' => 'checkbox'
],
'control_autofocus' => [
'text' => 'Autofocus on page load',
'type' => 'checkbox',
'enable' => '!control_readonly'
],
'control_placeholder' => [
'label' => 'Placeholder',
'description' => 'Set the text to be shown as the input placeholder.'
],
'control_size' => [
'label' => 'Size',
'description' => 'The field text size.',
'type' => 'select',
'options' => [
'Default' => '',
'Large' => 'large',
'Small' => 'small'
]
],
'control_width' => [
'label' => 'Width',
'description' => 'The field width size.',
'type' => 'select',
'options' => [
'Default' => '',
'Large' => 'large',
'Medium' => 'medium',
'Small' => 'small',
'XSmall' => 'xsmall'
]
],
'control_multiple' => [
'label' => 'Multiple',
'text' => 'Allow multiple options to be selected from the list',
'type' => 'checkbox'
],
'control_options' => [
'label' => 'Options',
'type' => 'content-items',
'title' => 'text',
'item' => 'yooessentials_form_option'
],
'control_icon_align' => [
'enable' => 'control_icon',
'label' => 'Icon Position',
'description' => 'Choose the icon position',
'type' => 'select',
'options' => [
'Left' => 'left',
'Right' => 'right'
]
],
'control_min' => [
'label' => 'Min',
'description' => 'Value can\'t be less than min.',
'attrs' => [
'type' => 'number'
]
],
'control_max' => [
'label' => 'Max',
'description' => 'Value can\'t be more than max.',
'attrs' => [
'type' => 'number'
]
],
'control_minlength' => [
'label' => 'Min Length',
'description' => 'Value can\'t have less characters than mininum.',
'type' => 'number',
'attrs' => [
'min' => 0
]
],
'control_maxlength' => [
'label' => 'Max Length',
'description' => 'Value can\'t have more characters than maximum.',
'type' => 'number',
'attrs' => [
'min' => 1
]
],
'control_pattern' => [
'label' => 'Pattern',
'description' => 'A regular expression the inputed value must match in order to be valid.'
],
'control_step' => [
'label' => 'Step',
'description' => 'The value will be a multiple of step.',
'type' => 'number'
]
];
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists