From fcbcd813dfabd7a6d1951e69a5fce7803b96f9e1 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Fri, 17 Dec 2021 14:09:10 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20boutons=20acc=C3=A8s=20rapide=20dans=20?= =?UTF-8?q?la=20liste=20des=20clients?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/clients.tpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/clients.tpl b/templates/clients.tpl index 3923fef..af1e1ce 100644 --- a/templates/clients.tpl +++ b/templates/clients.tpl @@ -16,10 +16,13 @@ {$value} {/foreach} - {linkbutton shape="user" href="client.php?id=%d"|args:$row.id label="Fiche client"} - {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_WRITE)} + {if $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_ADMIN)} + {linkbutton shape="delete" href="client_supprimer.php?id=%d"|args:$row.id label="Supprimer"} + {/if} + {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)} {linkbutton shape="edit" href="client_modifier.php?id=%d"|args:$row.id label="Modifier"} {/if} + {linkbutton shape="user" href="client.php?id=%d"|args:$row.id label="Fiche client"} {/foreach}