Changeset 10032
- Timestamp:
- 07/01/08 01:52:45 (5 months ago)
- Files:
-
- plugins/sfAdvancedAdminGeneratorPlugin/branches/pmacadden/data/generator/sfAdvancedAdmin/default/template/actions/actions.class.php (modified) (1 diff)
- plugins/sfAdvancedAdminGeneratorPlugin/branches/pmacadden/data/generator/sfAdvancedAdmin/default/template/templates/listSuccess.php (modified) (1 diff)
- plugins/sfAdvancedAdminGeneratorPlugin/branches/pmacadden/lib/sfAdvancedAdminGenerator.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfAdvancedAdminGeneratorPlugin/branches/pmacadden/data/generator/sfAdvancedAdmin/default/template/actions/actions.class.php
r9937 r10032 70 70 <?php endif ?> 71 71 $this->pager->init(); 72 <?php if ($fc = $this->getParameterValue('foreign_class', '')): ?> 73 $this-><?php echo $this->getSingularName() ?> = $this->get<?php echo $this->getClassName() ?>OrCreate(); 74 $this-><?php echo $this->getSingularName() ?>->set<?php echo sfInflector::camelize($fc) ?>($this->foreign_class); 75 <?php endif ?> 72 76 } 73 77 plugins/sfAdvancedAdminGeneratorPlugin/branches/pmacadden/data/generator/sfAdvancedAdmin/default/template/templates/listSuccess.php
r9935 r10032 5 5 <div id="sf_admin_container"> 6 6 7 <h1><?php echo $this->getI18NString('list.title', $this->getModuleName().' list') ?></h1>7 <h1><?php echo $this->getI18NString('list.title', (($value = $this->getForeignClassName())?$value.'\'s ':'').$this->getModuleName().' list') ?></h1> 8 8 9 9 <div id="sf_admin_header"> plugins/sfAdvancedAdminGeneratorPlugin/branches/pmacadden/lib/sfAdvancedAdminGenerator.class.php
r9935 r10032 124 124 } 125 125 } 126 127 public function getForeignClassName() 128 { 129 return strtolower($this->getParameterValue('foreign_class')); 130 } 126 131 }