![]() |
|
sfAdminTemplatePlugin - 1.0.1Vincent CHALAMON |
|
![]() |
2
users
Sign-in
to change your status |
Vincent CHALAMON |
| Name | Status | |
|---|---|---|
|
|
lead | moc.liamg <<ta>> nomalahctnecniv |
Copyright (c) Vincent CHALAMON
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 |
|---|---|---|---|
| 1.0.1stable | MIT license | 1.0.0stable | 30/07/2012 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.1stable | MIT license | 1.0.0stable | 30/07/2012 |
Array
Array
Vincent CHALAMON vincentchalamon@gmail.com
Ce plugin symfony 1.4 fournit un thème d'administration avec son propre Admin Generator. Il peut être combiné avec le plugin sfEPFactoryFormPlugin.
Vous souhaitez utiliser ce thème sur toute votre application ou simplement un module ? Il vous suffit d'éditer (ou créer) le fichier view.yml du répertoire config de votre application ou module, et d'y appliquer l'un des layouts proposé par le plugin :
Vous pouvez rajouter autant de thèmes que nécessaire afin de les prendre en compte par le plugin, cela chargera les javascripts et css nécessaires au plugin. Par exemple, pour rajouter un layout fancybox, éditer le fichier app.yml :
all:
sf_admin_template:
templates: [admin, clean, fancybox]
Afin de garder une homogénéité à travers toute l'administration, les templates du module sfGuardAuth ont été surchargés. Pour cela, copiez le répertoire /sfAdminTemplatePlugin/modules/sfGuardAuth, et collez-le dans le répertoire modules de votre application.
Ce plugin vous permet d'intégrer dynamiquement un menu en haut du thème admin. Pour cela, éditer le fichier app.yml :
all:
sf_admin_template:
menus:
article:
label: Articles
credentials: []
route_prefix: article
Un thème personnalisé d'admin generator est intégré à ce plugin. Pour le prendre en compte dans vos modules, éditez le fichier generator.yml de votre module.
Il est possible d'utiliser un template en colonnes pour vos formulaire d'admin generator. Pour cela, renseignez les paramètres suivants :
Exemple de generator.yml :
generator:
class: sfAdminTemplateGenerator
param:
model_class: Article
theme: admin_template
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: article
with_doctrine_route: true
actions_base_class: sfActions
config:
actions: ~
fields: ~
list:
title: Article
show:
title: %%name%%
display: [name, value, slug]
filter: ~
form:
template: columns
display: [contents, description]
columns: [name, url]
edit: ~
new: ~
