ilbronza/form

:form creator

1.0 2022-09-19 19:41 UTC

This package is auto-updated.

Last update: 2024-05-16 09:38:27 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

Via Composer

$ composer require ilbronza/form

Usage

    static $formFields = [
        'common' => [
            'nominativo' => [
                'containerClasses' => [
                ],
                'classes' => [
                    'uk-section-primary',
                ],
                'fields' => [
                    '3__nome' => [
                        'type' => 'text',
                        'rules' => 'string|nullable|max:255'
                    ],
                    '3__cognome' => ['text' => 'string|nullable|max:255'],
                ],
            ],
            'recapiti' => [
                'classes' => [
                    'uk-background-primary',
                    'uk-text-danger'
                ],
                'fields' => [
                    '3__tel_fisso' => ['text' => 'string|nullable|max:255'],
                    '3__tel_mobile' => ['text' => 'string|nullable|max:255'],
                    '3__email' => ['text' => 'string|nullable|max:255'],
                ],
            ],
            'precisazioni' => [
                'fields' => [
                    '3__precisazioni' => ['textarea' => 'string|nullable|max:2048'],
                    '3__qualita_di' => [
                        'type' => 'radio',
                        'rules' => 'string|nullable',
                        'stacked' => true
                    ]
                ],
                'width' => 1,
            ],
        ]
    ];    

Change log

Please see the changelog for more information on what has changed recently.

License

license. Please see the license file for more information.