1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

Admin-ui Tabs support added.

This commit is contained in:
Cameron
2013-02-24 19:52:25 -08:00
parent 763d1de7f7
commit 6011b65a4c
2 changed files with 279 additions and 12 deletions

View File

@@ -2355,6 +2355,17 @@ class e_admin_controller_ui extends e_admin_controller
{
return deftrue($this->pluginTitle, $this->pluginTitle);
}
/**
* Get Tab data
* @return array
*/
public function getTabs()
{
return $this->tabs;
}
/**
* Get all field data
@@ -4761,11 +4772,12 @@ class e_admin_form_ui extends e_form
$forms = $models = array();
$forms[] = array(
'id' => $this->getElementId(),
//'url' => e_SELF,
//'query' => 'self', or custom GET query, self is default
'tabs' => true, // TODO - NOT IMPLEMENTED YET - enable tabs (only if fieldset count is > 1)
'fieldsets' => array(
'create' => array(
'tabs' => $controller->getTabs(), //used within a single form.
'legend' => $legend,
'fields' => $controller->getFields(), //see e_admin_ui::$fields
'header' => $form_start,