pkAdminQuickCreatePlugin - 0.5.2

Allows "quick create" buttons which step aside to other admin generator classes, add a new object, and return with that field automatically filled in

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
pkAdminQuickCreatePlugin 0.5.2beta for sf 1.4sf 1.3sf 1.2sf 1.1sf 1.0 and Propel MIT
Plugin image
12
users
Sign-in
to change
your status

Many admin generator forms involve making associations between the object being edited and related objects. For instance, when adding an event to a calendar, you may need to associate that event with a DJ or a band. Symfony's admin generator can provide pulldowns to select these, but what if the y don't already exist? pkAdminQuickCreatePlugin makes it easy to implement "quick create" buttons that step aside to another admin generator module, create an object, and then bring the user back to complete the rest of the original form with all of their work intact.

Many admin generator forms involve making associations between the object being edited and related objects. For instance, when adding an event to a calendar, you may need to associate that event with a DJ or a band.

Symfony's admin generator can provide pulldowns to select these, but what if they don't already exist? pkAdminQuickCreatePlugin makes it easy to implement "quick create" buttons, like this:

Select Band: [Band Menu] OR... [Add a New Band]

When the user clicks "Add a New Band," the state of the form is saved and the user is diverted to the edit action of the band admin module. When the user saves a new band, they are automatically redirected back to the edit action of the event admin module, with all of their form fields restored and the newly created band preselected from the band menu. The cancel ("list") button also redirects appropriately. (We recommend relabeling them "save" and "cancel" via custom templates.)

This greatly increases the user-friendliness of the admin generator with a minimum of new effort on your part.

Solutions to keep the user from becoming confused about the process and avoid certain implementation pitfalls are discussed in the documentation.

Developers

Name Status Email
gravatar Tom Boutell lead moc.evaknup <<ta>> mot

License

Show source

Copyright (c) 2009 Thomas Boutell and P'unk Avenue LLC

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.