Skip to content
Snippets Groups Projects

full plugin mod for multiselection

Compare and Show latest version
2 files
+ 28
14
Preferences
Compare changes
Files
2
@@ -52,26 +52,30 @@ class ZendAfi_Controller_Plugin_Manager_Album {
protected function _albumActions($model) {
return [
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'edit_album',
'id' => '%s'],
'icon' => 'edit',
'label' => 'Modifier l\'album'],
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'edit_images',
'id' => '%s'],
'icon' => 'images',
'label' => 'Gérer les médias',
'caption' => 'formatedCount'],
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'preview_album',
'id' => '%s'],
'icon' => function($model) {return $model->isVisible() ? 'view' : 'hide';},
'label' => 'Visualisation de l\album'],
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'delete_album',
'id' => '%s'],
'icon' => 'delete',
@@ -83,25 +87,29 @@ class ZendAfi_Controller_Plugin_Manager_Album {
protected function _albumCategoryActions($model) {
return [
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'add_categorie_to',
'id' => '%s'],
'icon' => 'add_category',
'label' => 'Ajouter une sous-catégorie'],
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'add_album_to',
'id' => '%s'],
'icon' => 'add_page',
'label' => 'Ajouter un album'],
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'edit_categorie',
'id' => '%s'],
'icon' => 'edit',
'label' => 'Modifier la catégorie'],
['url' => ['controller' => 'album',
['url' => ['module' => 'admin',
'controller' => 'album',
'action' => 'delete_categorie',
'id' => '%s'],
'icon' => 'delete',