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}