Plugin Symfony 1.4 que implementa un tema para el generador de admin usando Bootstrap 3
- Habilitar el plugin en
config/ProjectConfiguration.class.php:
public function setup()
{
$this->enablePlugins(
[...],
'izarusBootstrap3AdminThemePlugin'
);
[...]
}
- Aplicar el theme en los
apps/APPNAME/modules/MODULENAME/config/generator.yml:
generator:
param:
theme: bootstrap
- Limpiar el caché
$ php symfony cc
- Para crear nuevos módulos con el admin generator y el theme Boostrap:
$ php symfony doctrine:generate-admin appname CLASSNAME --theme=bootstrap
- (OPCIONAL) Para utilizar el
izarusWidgetFormBootstrapSelectDoubleListse debe copiar el archivodouble_list.jsdesde el plugin al directorio web/js. Un ejemplo de utilizacion:
$this->widgetSchema['clientes_list'] = new sfWidgetFormDoctrineChoice(array(
'model' => 'Cliente',
'renderer_class' => 'izarusWidgetFormBootstrapSelectDoubleList',
'renderer_options' => array(
'label_unassociated' => 'No asociados',
'label_associated' => 'Asociados',
),
));