fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [12371] add tab to edit form


From: Nelson Guerra
Subject: [Fmsystem-commits] [12371] add tab to edit form
Date: Tue, 25 Nov 2014 23:17:05 +0000

Revision: 12371
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12371
Author:   nelson224
Date:     2014-11-25 23:17:04 +0000 (Tue, 25 Nov 2014)
Log Message:
-----------
add tab to edit form

Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uigeneric.inc.php

Modified: branches/dev-syncromind/property/inc/class.uigeneric.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uigeneric.inc.php        
2014-11-24 23:15:52 UTC (rev 12370)
+++ branches/dev-syncromind/property/inc/class.uigeneric.inc.php        
2014-11-25 23:17:04 UTC (rev 12371)
@@ -592,7 +592,9 @@
                                );
                                                
                        $tabs = array();
-
+                       $tabs['generic']        = array('label' => 
lang('generic'), 'link' => '#generic');
+                       $active_tab = 'generic';
+                       
                        if (isset($values['attributes']) && 
is_array($values['attributes']))
                        {
                                foreach ($values['attributes'] as & $attribute)
@@ -704,7 +706,7 @@
                                        'lookup_functions'                      
        => isset($values['lookup_functions'])?$values['lookup_functions']:'',
                                        'textareacols'                          
        => 
isset($GLOBALS['phpgw_info']['user']['preferences']['property']['textareacols'])
 && $GLOBALS['phpgw_info']['user']['preferences']['property']['textareacols'] ? 
$GLOBALS['phpgw_info']['user']['preferences']['property']['textareacols'] : 60,
                                        'textarearows'                          
        => 
isset($GLOBALS['phpgw_info']['user']['preferences']['property']['textarearows'])
 && $GLOBALS['phpgw_info']['user']['preferences']['property']['textarearows'] ? 
$GLOBALS['phpgw_info']['user']['preferences']['property']['textarearows'] : 10,
-                                       'tabs'                                  
                => phpgwapi_jquery::tabview_generate($tabs, 'general'),
+                                       'tabs'                                  
                => phpgwapi_jquery::tabview_generate($tabs, $active_tab),
                                        'id_name'                               
                => $this->location_info['id']['name'],
                                        'id_type'                               
                => $this->location_info['id']['type'],
                                        'fields'                                
                => $this->location_info['fields']




reply via email to

[Prev in Thread] Current Thread [Next in Thread]