Development

Changeset 8866

You must first sign up to be able to contribute.

Changeset 8866

Show
Ignore:
Timestamp:
05/08/08 20:56:38 (1 week ago)
Author:
Leon.van.der.Ree
Message:

improved toolbars a little

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_list_ajax_toolbar_paging_js.php

    r8864 r8866  
    2424    'name' => '<?php echo $toolbarName ?>Config', 
    2525    'attributes' => array( 
    26 //      'store' => new sfExtjs2Var('ds_list'), 
     26      'store' => new sfExtjs2Var('new Ext.data.Store()'), // TODO: new sfExtjs2Var('parent.grid.ds'), or something like that 
    2727      'pageSize' => <?php echo $limit ?>, 
    2828      'displayInfo' => true, 
     
    5252    'Ext.app.sx', 
    5353    '<?php echo $toolbarName ?>', 
    54     'Ext.Toolbar', 
     54    'Ext.PagingToolbar', 
    5555    array ( 
    5656      'constructor'   => $sfExtjs2Plugin->asMethod($sfExtjs2_<?php echo $toolbarName ?>_constructor), 
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_list_ajax_toolbar_top_js.php

    r8864 r8866  
    11[?php /* * Created on 20-nov-2007 * * by Leon van der Ree */ ?] 
     2<?php  
     3$listActions = $this->getParameterValue('list.actions'); 
     4if (null === $listActions) 
     5{ 
     6  $listActions = array( 
     7    '_create' => array(),  
     8    '_refresh' => array() 
     9  ); 
     10} 
     11 
     12if (count($listActions)): ?> 
    213<?php 
    3  
    4 if (count($this->getParameterValue('list.actions')) > 0 || $this->getParameterValue('list.actions', true)): 
    5  
    614  // get the controller, used for URL creation 
    715  $controller = sfContext::getInstance()->getController(); 
     
    1119   
    1220  $toolbarName = "List".$moduleName."ToolbarTop"; 
    13    
    1421?> 
    1522[?php 
     
    2229    'name' => '<?php echo $toolbarName ?>Config', 
    2330    'attributes' => array( 
    24       'autoWidth' => false 
    25     )    
     31      'autoWidth' => false, 
     32      'items' => array( 
     33<?php foreach ((array) $listActions as $actionName => $params): ?> 
     34        $sfExtjs2Plugin->Separator(array()), 
     35<?php endforeach ?>         
     36      ) 
     37    ) 
    2638  ); 
    2739  echo $sfExtjs2Plugin->asAnonymousClass($config);