goFrendiAsgard / No-CMS

No-CMS, A CodeIgniter Based CMS Framework
299 stars 199 forks source link

Tabs in forms #105

Closed ohnague closed 10 years ago

ohnague commented 10 years ago

good afternoon I do not think need to say much here but at least look at this wonderful idea I think the user MiamMiam in the forum of grocery-crud.

http://www.grocerycrud.com/forums/topic/2428-tabs-in-forms/

But in addition to the projects that I do with at least noCMS me is very useful, especially for those forms that are a bit huge to say.

Please excuse my English but I do it from a translator, you will surely find many grammatical errors

goFrendiAsgard commented 10 years ago

Hi @ohnague thank you for your suggestion

goFrendiAsgard commented 10 years ago

Feature added: https://github.com/goFrendiAsgard/No-CMS/commit/43d555be0f0df31780055cfe09b320b15d556c3e

How to use:

// We have 5 columns
$crud->edit_fields('country_id','name','tourism','commodity','citizen');
// We will have 2 tabs
$crud->set_tabs(array(
    'Country and Name'=>2,  // The first tab contains 2 columns (country_id & name)
    'Detail Info'=>3 // The second tab contains 3 columns (tourism, commodity & citizen)
));