Changeset 8866
- Timestamp:
- 05/08/08 20:56:38 (1 week ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_list_ajax_toolbar_paging_js.php
r8864 r8866 24 24 'name' => '<?php echo $toolbarName ?>Config', 25 25 '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 27 27 'pageSize' => <?php echo $limit ?>, 28 28 'displayInfo' => true, … … 52 52 'Ext.app.sx', 53 53 '<?php echo $toolbarName ?>', 54 'Ext. Toolbar',54 'Ext.PagingToolbar', 55 55 array ( 56 56 'constructor' => $sfExtjs2Plugin->asMethod($sfExtjs2_<?php echo $toolbarName ?>_constructor), plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_list_ajax_toolbar_top_js.php
r8864 r8866 1 1 [?php /* * Created on 20-nov-2007 * * by Leon van der Ree */ ?] 2 <?php 3 $listActions = $this->getParameterValue('list.actions'); 4 if (null === $listActions) 5 { 6 $listActions = array( 7 '_create' => array(), 8 '_refresh' => array() 9 ); 10 } 11 12 if (count($listActions)): ?> 2 13 <?php 3 4 if (count($this->getParameterValue('list.actions')) > 0 || $this->getParameterValue('list.actions', true)):5 6 14 // get the controller, used for URL creation 7 15 $controller = sfContext::getInstance()->getController(); … … 11 19 12 20 $toolbarName = "List".$moduleName."ToolbarTop"; 13 14 21 ?> 15 22 [?php … … 22 29 'name' => '<?php echo $toolbarName ?>Config', 23 30 '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 ) 26 38 ); 27 39 echo $sfExtjs2Plugin->asAnonymousClass($config);