request->controller, ['Fournisseurs'])
//in_array($this->request->controller, ['Materiels','Suivis','Emprunts','Fournisseurs'])
);
//$CAN_DEL = in_array($role, ['Administration', 'Super Administrateur']);
$CAN_DEL = $CAN_EDIT;
*/
/*
$bStyle = 'margin-right: 10px';
$echoActionButton($this->Html, 'icon-plus', $bStyle, ' Ajouter', $this->request->controller, 'add', null);
*/
if ($CAN_EDIT) echo $this->Html->link(
__(' Editer'),
//[ 'action' => 'edit', $site->id ],
[ 'action' => 'edit', $id ],
[
'style' => 'margin-right: 40px; display: inline-block',
'escape' => false,
'onclick' => 'return true;'
]);
if ($CAN_DELETE) echo $this->Form->postLink(
__(' Supprimer'),
//[ 'action' => 'delete', $site->id ],
[ 'action' => 'delete', $id ],
[
'style' => 'display: inline-block',
'escape' => false,
//'confirm' => __('Êtes-vous sur de vouloir supprimer #{0}?', $site->id)
'confirm' => __('Êtes-vous sur de vouloir supprimer cet élément ?', $id)
]);
?>