![]() |
|
sfAdvancedAdminGeneratorPlugin - 0.1.7Advanced Admin Generator for symfony |
|
![]() |
8
users
Sign-in
to change your status |
sfAdvancedAdminGeneratorPlugin allow distinct configurations between create and edit |
| Name | Status | |
|---|---|---|
|
|
lead | ten.neibmac <<ta>> niamor |
Copyright (c) 2007 Romain Cambien
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Version | License | API | Released |
|---|---|---|---|
| 0.2.1beta | MIT license | 1.1.0beta | 04/05/2008 |
| 0.2.0beta | MIT license | 1.1.0beta | 03/05/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 0.1.7beta | MIT license | 1.0.0beta | 04/05/2008 |
| 0.1.6beta | MIT license | 1.0.0beta | 03/05/2008 |
| 0.1.4beta | MIT license | 0.1.4beta | 03/03/2008 |
| 0.1.3beta | MIT license | 0.1.3beta | 16/11/2007 |
| 0.1.2beta | MIT license | 0.1.2beta | 29/10/2007 |
| 0.1.1beta | MIT license | 0.1.1beta | 23/10/2007 |
| 0.1.0beta | MIT license | 0.1.0beta | 16/10/2007 |
The sfAdvancedAdminGenerator provide advanced functionalities for admin generator.
Distinct configurations between create and edit action
Add a 'show' action that provide a view for the object (no edit)
Change the action for the hyperlink on the list
Install the plug-in
symfony plugin-install http://plugins.symfony-project.com/sfAdvancedAdminGeneratorPlugin
change the generator in your generator.yml
generator: class: sfAdvancedAdminGenerator param: model_class: Book theme: default
list:
click_action: show ## Change the default hyperlink
multisort: true ## Enabling the multisort
sort: [desc], [title, asc], [authorlastname, asc]]([authorname,) #Default sort
object_actions:
_edit:
_show: ## Show the object (no edit)
fields:
authorname:
name: 'Author Name'
join_fields: [AuthorPeer::ID](BookPeer::AUTHOR_ID,)
sort_column: [AuthorPeer::NAME]
authorlastname:
name: 'Author Last Name'
sort_column: [AuthorPeer::LAST_NAME]
edit:
title: Edit a book
display: [title](author_id,)
fields:
author_id: {params: disabled=true} ## Can't edit the author of an existing book
actions:
_list:
_save:
create:
title: Create a new book
actions:
_list:
_save:
_save_and_add: ## allow to add an other book after a creatio
show:
title: View a book
display: [title](author_id,)
Clear the cache
symfony cc
You're done.
If no 'create' section is present in your configuration, the generator act exactly like the default generator (create action use edit configuration)
If no 'click_action' option is present in 'list' section, the hyperlink link to edit action
The configuration for the 'create' and 'show' sections are the same that the symfony default admin generator.
Please, submit any bugs or features requests on the forum
romain: Feature : Add flash notice on list action
=== 2008-03-03 | 0.1.4 ===
shouze: BugFix : minor typo correction in _list_td_tabular.php
shouze: Feature : object_select_map_tag() added, sort of mapping of enum type fields
=== 2008-03-06 | 0.1.5 ===
Dannyrulez: Feature : multi-sort list added, http://trac.symfony-project.com/ticket/2092 (Credits to Leon.van.der.Ree)
=== 2008-05-03 | 0.1.6 ===
h0nIg: BugFix : not needed in _show_actions.php
h0nIg: BugFix : fixed broken package.xml
=== 2008-05-04 | 0.1.7 ===
h0nIg: BugFix : removed delete action in create
