<?php

return [
    'defaults'      => [
        'wrapper_class'       => 'form-group',
        'wrapper_error_class' => 'has-error',
        'label_class'         => 'control-label',
        'field_class'         => 'form-control',
        'help_block_class'    => 'help-block',
        'error_class'         => 'text-danger',
        'required_class'      => 'required'

        // Override a class from a field.
        //'text'                => [
        //    'wrapper_class'   => 'form-field-text',
        //    'label_class'     => 'form-field-text-label',
        //    'field_class'     => 'form-field-text-field',
        //]
        //'radio'               => [
        //    'choice_options'  => [
        //        'wrapper'     => ['class' => 'form-radio'],
        //        'label'       => ['class' => 'form-radio-label'],
        //        'field'       => ['class' => 'form-radio-field'],
        //],
    ],
    // Templates
    'form'          => 'Core::form.field.form',
    'text'          => 'Core::form.field.text',
    'textarea'      => 'Core::form.field.textarea',
    'button'        => 'Core::form.field.button',
    'buttongroup'   => 'Core::form.field.buttongroup',
    'radio'         => 'Core::form.field.radio',
    'checkbox'      => 'Core::form.field.checkbox',
    'select'        => 'Core::form.field.select',
    'choice'        => 'Core::form.field.choice',
    'repeated'      => 'Core::form.field.repeated',
    'child_form'    => 'Core::form.field.child_form',
    'collection'    => 'Core::form.field.collection',
    'static'        => 'Core::form.field.static',

    // Remove the laravel-form-builder:: prefix above when using template_prefix
    'template_prefix'   => '',

    'default_namespace' => '',

    'custom_fields' => [
        'toggle' => \Ignite\Core\Models\Form\Field\Toggle::class,
        'slider' => \Ignite\Core\Models\Form\Field\Slider::class,
        'icon' => \Ignite\Core\Models\Form\Field\Icon::class,
        //'datetime' => App\Forms\Fields\Datetime::class
    ]
];
