Development

Changeset 7997

You must first sign up to be able to contribute.

Changeset 7997

Show
Ignore:
Timestamp:
03/20/08 13:29:34 (7 months ago)
Author:
noel
Message:

admin generator handles plain fields (closes #2935)

Files:

Legend:

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

    r3501 r7997  
    200200<?php foreach ($this->getColumns('edit.display', $category) as $name => $column): $type = $column->getCreoleType(); ?> 
    201201<?php $name = $column->getName() ?> 
    202 <?php if ($column->isPrimaryKey()) continue ?> 
     202<?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?> 
     203<?php if ($column->isPrimaryKey() || $input_type == 'plain') continue ?> 
    203204<?php $credentials = $this->getParameterValue('edit.fields.'.$column->getName().'.credentials') ?> 
    204 <?php $input_type = $this->getParameterValue('edit.fields.'.$column->getName().'.type') ?> 
    205205<?php if ($credentials): $credentials = str_replace("\n", ' ', var_export($credentials, true)) ?> 
    206206    if ($this->getUser()->hasCredential(<?php echo $credentials ?>))