Development

Changeset 3496

You must first sign up to be able to contribute.

Changeset 3496

Show
Ignore:
Timestamp:
02/18/07 10:47:42 (2 years ago)
Author:
fabien
Message:

fixed double_list.js inclusion in admin generator when not needed (closes #1415)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/data/generator/sfPropelAdmin/default/template/templates/_edit_form.php

    r3310 r3496  
    1 [?php echo form_tag('<?php echo $this->getModuleName() ?>/edit', 'id=sf_admin_edit_form name=sf_admin_edit_form multipart=true onsubmit=double_list_submit(); return true;') ?] 
     1[?php echo form_tag('<?php echo $this->getModuleName() ?>/edit', array( 
     2  'id'        => 'sf_admin_edit_form', 
     3  'name'      => 'sf_admin_edit_form', 
     4  'multipart' => true, 
     5<?php foreach ($this->getColumnCategories('edit.display') as $category): ?> 
     6<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): ?> 
     7<?php if ('admin_double_list' == $this->getParameterValue('edit.fields.'.$column->getName().'.type')): ?> 
     8  'onsubmit'  => 'double_list_submit(); return true;' 
     9<?php break 2; ?> 
     10<?php endif; ?> 
     11<?php endforeach; ?> 
     12<?php endforeach; ?> 
     13)) ?] 
    214 
    315<?php foreach ($this->getPrimaryKey() as $pk): ?>