<li><a class="sprite prefix home" href="[?= UrlComponent::path(array('action' => 'index')) ?]">Retour aux {#plural#}</a></li> </ul> [? $i=0; ?] <? $fields = Doctrine::getTable($model)->getColumns(); ?> <table class="summary"> <colgroup> <col style="width:20%"> <col> </colgroup> <tbody> <? foreach($fields as $field => $options) : ?> <? if (!in_array($field, $exclude)) : ?> <tr class="[?= ++$i % 2 ? 'odd': 'even' ?]"> <th scope="row"><?php echo cfirst(ThisGeneratorHelper::field($field, $mapping)); ?> </th> <td>[?= ${#Model#}['<?php echo $field; ?> '] ?]</td> </tr> <? endif ?> <? endforeach ?> </tbody> </table> <div class="form"> <form method="post" action="[?= UrlComponent::path(array('action' => 'delete'), ${#Model#}['id']) ?]"> <input type="hidden" name="id" value="[?= ${#Model#}['id'] ?]">
<div class="[?= ++$i % 2 ? 'odd': 'even' ?] [?= FormHelper::getErrorClass('<?php echo $field; ?> ', ${#Model#}, false); ?]"> <label for="<?php echo $field; ?> "><?php echo cfirst(ThisGeneratorHelper::field($field, $mapping)); ?> </label> [?= <?php echo ThisGeneratorHelper::getFormElement($model, $field, '{#Model#}'); ?> ?] <?php echo ThisGeneratorHelper::getFormHint($model, $field, '{#Model#}'); ?> [?= FormHelper::displayErrors('<?php echo $field; ?> ', ${#Model#}) ?] </div> <? endif ?> <? endforeach ?> </fieldset> <div> <input class="button" type="submit" value="Enregistrer"> ou