|
3 | 3 |
|
4 | 4 | <div class="sf_admin_form">
|
5 | 5 | [?php echo form_tag_for($form, '@<?php echo $this->params['route_prefix'] ?>') ?]
|
| 6 | + |
| 7 | +<?php if($this->configuration->hasNewPartial()) : ?> |
| 8 | + [?php if ($form->isNew()) : ?] |
| 9 | + <div class="sf_admin_right_column"> |
| 10 | + <?php foreach($this->configuration->getNewPartial() as $partial): ?> |
| 11 | + [?php include_partial('<?php echo $partial ?>', array('form' => $form, '<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'helper' => $helper, 'configuration' => $configuration)) ?] |
| 12 | + <?php endforeach; ?> |
| 13 | + </div> |
| 14 | + <div class="sf_admin_with_right_colum"> |
| 15 | + [?php endif; ?] |
| 16 | +<?php endif; ?> |
| 17 | + |
| 18 | +<?php if($this->configuration->hasEditPartial()) : ?> |
| 19 | + [?php if (!$form->isNew()) : ?] |
| 20 | + <div class="sf_admin_right_column"> |
| 21 | + <?php foreach($this->configuration->getEditPartial() as $partial): ?> |
| 22 | + [?php include_partial('<?php echo $partial ?>', array('form' => $form, '<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'helper' => $helper, 'configuration' => $configuration)) ?] |
| 23 | + <?php endforeach; ?> |
| 24 | + </div> |
| 25 | + <div class="sf_admin_with_right_colum"> |
| 26 | + [?php endif; ?] |
| 27 | +<?php endif; ?> |
| 28 | + |
6 | 29 | [?php echo $form->renderHiddenFields(false) ?]
|
7 | 30 |
|
8 | 31 | [?php if ($form->hasGlobalErrors()): ?]
|
|
13 | 36 | [?php include_partial('<?php echo $this->getModuleName() ?>/form_fieldset', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'form' => $form, 'fields' => $fields, 'fieldset' => $fieldset)) ?]
|
14 | 37 | [?php endforeach; ?]
|
15 | 38 |
|
| 39 | +<?php if($this->configuration->hasEditPartial() && $this->configuration->hasNewPartial()) : ?> |
| 40 | + </div> |
| 41 | +<?php elseif ($this->configuration->hasNewPartial()) : ?> |
| 42 | + [?php if ($form->isNew()) : ?] |
| 43 | + </div> |
| 44 | + [?php endif; ?] |
| 45 | +<?php else : ?> |
| 46 | + [?php if (!$form->isNew()) : ?] |
| 47 | + </div> |
| 48 | + [?php endif; ?] |
| 49 | +<?php endif; ?> |
| 50 | + |
16 | 51 | [?php include_partial('<?php echo $this->getModuleName() ?>/form_actions', array('<?php echo $this->getSingularName() ?>' => $<?php echo $this->getSingularName() ?>, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper)) ?]
|
| 52 | + |
17 | 53 | </form>
|
18 | 54 | </div>
|
0 commit comments