|
|
@@ -38,6 +38,15 @@ abstract class AbstractCrudController extends EaAbstractCrudController |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
$actionSaveAndReturn = [ |
|
|
|
'add-class' => 'float-right', |
|
|
|
'icon' => 'check', |
|
|
|
]; |
|
|
|
$actionIndex = [ |
|
|
|
'icon' => 'chevron-left', |
|
|
|
'class' => 'btn btn-link', |
|
|
|
]; |
|
|
|
|
|
|
|
/* Boutons des actions dans les listes */ |
|
|
|
$actionsArray[Crud::PAGE_INDEX] = [ |
|
|
|
Action::EDIT => [ |
|
|
@@ -57,30 +66,25 @@ abstract class AbstractCrudController extends EaAbstractCrudController |
|
|
|
Action::SAVE_AND_CONTINUE => [ |
|
|
|
'class' => 'btn btn-info float-right', |
|
|
|
], |
|
|
|
Action::SAVE_AND_RETURN => [ |
|
|
|
'add-class' => 'float-right', |
|
|
|
], |
|
|
|
Action::INDEX => [ |
|
|
|
'icon' => 'chevron-left', |
|
|
|
'class'=> '' |
|
|
|
Action::DELETE => [ |
|
|
|
'icon' => 'trash', |
|
|
|
'class' => 'btn btn-link text-danger', |
|
|
|
], |
|
|
|
Action::SAVE_AND_RETURN => $actionSaveAndReturn, |
|
|
|
Action::INDEX=>$actionIndex |
|
|
|
]; |
|
|
|
$actionsArray[Crud::PAGE_NEW] = [ |
|
|
|
Action::SAVE_AND_ADD_ANOTHER => [ |
|
|
|
'class' => 'btn btn-info float-right', |
|
|
|
], |
|
|
|
Action::SAVE_AND_RETURN => [ |
|
|
|
'add-class' => 'float-right', |
|
|
|
], |
|
|
|
|
|
|
|
Action::INDEX => [ |
|
|
|
'icon' => 'chevron-left', |
|
|
|
'class'=> '' |
|
|
|
], |
|
|
|
Action::SAVE_AND_RETURN => $actionSaveAndReturn, |
|
|
|
Action::INDEX=>$actionIndex |
|
|
|
]; |
|
|
|
|
|
|
|
$actions->add(Crud::PAGE_EDIT, Action::INDEX); |
|
|
|
$actions->add(Crud::PAGE_EDIT, Action::DELETE); |
|
|
|
$actions->add(Crud::PAGE_NEW, Action::INDEX); |
|
|
|
$actions->add(Crud::PAGE_NEW, Action::DELETE); |
|
|
|
|
|
|
|
$actions->reorder(Crud::PAGE_EDIT, [Action::INDEX, Action::SAVE_AND_RETURN, Action::SAVE_AND_CONTINUE]); |
|
|
|
$actions->reorder(Crud::PAGE_NEW, [Action::INDEX, Action::SAVE_AND_RETURN, Action::SAVE_AND_ADD_ANOTHER]); |