websemantics / stone-theme

:moyai: Responsive admin theme for PyroCMS 3 that's easy to install and customize, with slick ui and intuitive user experience.
MIT License
13 stars 2 forks source link

FormBuilder tabs #9

Open pepijnolivier opened 7 years ago

pepijnolivier commented 7 years ago

When defining FormBuilder tabs, the tab functionality is not yet fully implemented. I might send a PR in a few days/weeks for this.

Example tabbed sections definition below: Also see docs

protected $sections = [
    [
        'slug' => 'tabs',
        'tabs' => [
            'basic-info' => [
                'slug' => 'basic-info',
                'title' => 'Basic info',
                'fields' => [
                    'slug',
                    'is_published',
                ],
            ],
            'translatable' => [
                'slug' => 'translatable',
                'title' => 'Translatable',
                'fields' => [
                    'title',
                    'objective',
                ],
            ],
        ],
    ],
];
websemantics commented 7 years ago

I haven't tried the form Tabs as yet so PR would be great, thanks @pepijnolivier, Will keep this open in case I come around to fix this,