|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$actionSaveAndReturn = [ |
|
|
|
|
|
'add-class' => 'float-right', |
|
|
|
|
|
'icon' => 'check', |
|
|
|
|
|
]; |
|
|
|
|
|
$actionIndex = [ |
|
|
|
|
|
'icon' => 'chevron-left', |
|
|
|
|
|
'class' => 'btn btn-link', |
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
/* Boutons des actions dans les listes */ |
|
|
/* Boutons des actions dans les listes */ |
|
|
$actionsArray[Crud::PAGE_INDEX] = [ |
|
|
$actionsArray[Crud::PAGE_INDEX] = [ |
|
|
Action::EDIT => [ |
|
|
Action::EDIT => [ |
|
|
|
|
|
|
|
|
Action::SAVE_AND_CONTINUE => [ |
|
|
Action::SAVE_AND_CONTINUE => [ |
|
|
'class' => 'btn btn-info float-right', |
|
|
'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] = [ |
|
|
$actionsArray[Crud::PAGE_NEW] = [ |
|
|
Action::SAVE_AND_ADD_ANOTHER => [ |
|
|
Action::SAVE_AND_ADD_ANOTHER => [ |
|
|
'class' => 'btn btn-info float-right', |
|
|
'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::INDEX); |
|
|
|
|
|
$actions->add(Crud::PAGE_EDIT, Action::DELETE); |
|
|
$actions->add(Crud::PAGE_NEW, Action::INDEX); |
|
|
$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_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]); |
|
|
$actions->reorder(Crud::PAGE_NEW, [Action::INDEX, Action::SAVE_AND_RETURN, Action::SAVE_AND_ADD_ANOTHER]); |