Using the new Admin Generator with Symfony 1.2.1, adding a _save_and_list to the edit actions, produces and invalid action + invalid input type for the _save_and_list option.
The problem is discussed here http://www.symfony-project.org/forum/index.php?t=rview&goto=67771&th=17493.
I have installed symfony using, the sandbox, as svn:externals and my
lib/symfony/plugins/sfPropelPlugin/data/generator/sfPropelAd min/default/template/actions/actions.class.php
is exactly the same, in all versions, which renders invalid the solution to reinstall symfony.
generator.yml
...
config:
actions: ~
fields: ~
list:
display: [ =name ]
batch_actions: {}
object_actions:
_delete:
shoe:
filter: ~
form: ~
edit:
actions:
_list: { label: Back }
_save: { label: Save }
_save_and_list: { label: Savel }
new:
actions:
_list: { label: Back }
_save: { label: Save }
_save_and_list: { label: Save1 }
HTML Output:
<form method="post" action="/backend_dev.php/collection"> <input type="hidden" name="collection[id]" id="collection_id" />
<fieldset id="sf_fieldset_none">
<div class="sf_admin_form_row sf_admin_text sf_admin_form_field_name">
<div>
<label for="collection_name">Name</label>
<input type="text" name="collection[name]" id="collection_name" />
</div>
</div>
</fieldset>
<ul class="sf_admin_actions">
<li class="sf_admin_action_list"><a href="/backend_dev.php/collection">Back</a></li> <li class="sf_admin_action_save"><input type="submit" value="Save" /></li> <li class="sf_admin_action_save_and_list">
<a href="/backend_dev.php/collection//List_saveAndList">Savel</a> </li>
</ul>
</form>