Development

Changeset 7032

You must first sign up to be able to contribute.

Changeset 7032

Show
Ignore:
Timestamp:
01/14/08 00:58:29 (10 months ago)
Author:
Leon.van.der.Ree
Message:

improved editor, fixed problem with clicking on links in grid which need to be loaded in new tab

Files:

Legend:

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

    r6839 r7032  
    3636       
    3737      function onClickGrid(e, target){ 
    38         if(target = e.getTarget('a', 1)){ 
     38        if(target = e.getTarget('a')){ 
    3939          // stop propogation (stops loading the clicked link) 
    4040          e.stopEvent(); 
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/editAjaxSuccess.php

    r7018 r7032  
    1515?] 
    1616 
     17[?php //take a look at: http://www.ephicient.com/ext/examples/layout/#  ?] 
     18 
    1719<script type="text/javascript"> 
     20[?php include_partial('edit_ajax_store') ?] 
     21[?php include_partial('related_ajax_stores') ?] 
    1822[?php include_partial('related_ajax_editors') ?] 
    1923</script> 
    20  
    21  
    22 <div id="sf_admin_container"> 
    2324 
    2425[?php if ($<?php echo $this->getSingularName() ?>->isNew()): ?] 
     
    3233[?php endif; ?] 
    3334 
    34  
    35 <div id="sf_admin_header"> 
    36 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_header', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
    37 </div> 
    38  
    3935<?php  
    4036 
     
    4238 
    4339$sfExtjs2Plugin->begin(); 
     40 
     41echo "Ext.Panel.prototype.border = false;"; 
     42 
    4443$sfExtjs2Plugin->beginApplication(array( 
    4544  'name'   => 'EditLayout', 
     
    5554          $sfExtjs2Plugin->Panel(array( 
    5655            'region' => 'north', 
    57             'contentEl' => 'sf_admin_content_message' 
     56            'contentEl' => 'sf_admin_header' 
     57          )), 
     58          $sfExtjs2Plugin->BoxComponent(array( 
     59            'region' => 'west', 
     60            'el' => 'sf_admin_content_menu', 
     61            'margins' => '10 10 10 10' 
    5862          )), 
    5963          $sfExtjs2Plugin->Panel(array( 
    6064            'region' => 'center', 
    61             'contentEl' => 'sf_admin_content_main' 
     65            'layout' => 'border', 
     66            'items'  => array( 
     67              $sfExtjs2Plugin->Panel(array( 
     68                'region' => 'north', 
     69                'contentEl' => 'sf_admin_content_message' 
     70              )), 
     71              $sfExtjs2Plugin->Panel(array( 
     72                'region' => 'center', 
     73                'contentEl' => 'sf_admin_content_main' 
     74              )), 
     75              $sfExtjs2Plugin->Panel(array( 
     76                'region' => 'south', 
     77                'contentEl' => 'sf_admin_content_pages' 
     78              )) 
     79            ) 
    6280          )), 
    6381          $sfExtjs2Plugin->Panel(array( 
    6482            'region' => 'south', 
    65             'contentEl' => 'sf_admin_content_pages
     83            'contentEl' => 'sf_admin_footer
    6684          )) 
    6785        ) 
     
    7492?> 
    7593 
    76 //Ext.onReady(function(){ 
     94Ext.onReady(function(){ 
    7795//  EditLayout.init(); 
    78 //}); 
     96}); 
    7997      
    80 [?php include_partial('edit_ajax_store') ?] 
    81 [?php include_partial('related_ajax_stores') ?] 
    82  
    8398<?php     
    8499$sfExtjs2Plugin->end(); 
    85100?> 
    86101 
     102<div id="sf_admin_container"> 
     103 
     104<div id="sf_admin_header"> 
     105[?php include_partial('edit_header', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
     106</div> 
     107 
     108<div id="sf_admin_content_menu"> 
     109[?php include_partial('edit_ajax_menu', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
     110</div> 
     111 
    87112<div id="sf_admin_content_message"> 
    88 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_messages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
     113[?php include_partial('edit_messages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
    89114</div> 
    90115<div id="sf_admin_content_main"> 
    91 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_form_ajax', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
     116[?php include_partial('edit_form_ajax', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
     117[?php include_partial('edit_form_ajax_tabpages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
    92118</div> 
     119 
    93120<div id="sf_admin_content_pages"> 
    94 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_form_ajax_tabpages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
     121 
    95122</div> 
    96123 
    97124<div id="sf_admin_footer"> 
    98 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_footer', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
     125[?php include_partial('edit_footer', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
    99126</div> 
    100127 
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/editSuccess.php

    r5473 r7032  
    1515 
    1616<div id="sf_admin_header"> 
    17 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_header', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
     17[?php include_partial(edit_header', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
    1818</div> 
    1919 
    2020<div id="sf_admin_content"> 
    21 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_messages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
    22 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_form', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
     21[?php include_partial(edit_messages', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
     22[?php include_partial(edit_form', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'labels' => $labels)) ?] 
    2323</div> 
    2424 
    2525<div id="sf_admin_footer"> 
    26 [?php include_partial('<?php echo $this->getModuleName() ?>/edit_footer', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
     26[?php include_partial(edit_footer', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>)) ?] 
    2727</div> 
    2828 
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/jsonListAutocompleteSuccess.php

    r5891 r7032  
    1 [?php include_partial('<?php echo $this->getModuleName() ?>/json_list_autocomplete', array('pager' => $pager)) ?] 
     1[?php include_partial('json_list_autocomplete', array('pager' => $pager)) ?] 
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/jsonListSuccess.php

    r5891 r7032  
    1 [?php include_partial('<?php echo $this->getModuleName() ?>/json_list', array('pager' => $pager)) ?] 
     1[?php include_partial('json_list', array('pager' => $pager)) ?] 
  • plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/listSuccess.php

    r7018 r7032  
    3636 
    3737  <div id="sf_admin_header"> 
    38     [?php include_partial('<?php echo $this->getModuleName() ?>/list_header', array('pager' => $pager)) ?] 
    39     [?php include_partial('<?php echo $this->getModuleName() ?>/list_messages', array('pager' => $pager)) ?] 
     38    [?php include_partial('list_header', array('pager' => $pager)) ?] 
     39    [?php include_partial('list_messages', array('pager' => $pager)) ?] 
    4040  </div> 
    4141 
     
    7676 
    7777  <div id="sf_admin_footer"> 
    78   [?php include_partial('<?php echo $this->getModuleName() ?>/list_footer', array('pager' => $pager)) ?] 
     78  [?php include_partial('list_footer', array('pager' => $pager)) ?] 
    7979 
    8080  </div>