Ajout boutons accès rapide dans la liste des clients

This commit is contained in:
bohwaz 2021-12-17 14:09:10 +01:00
parent f0d644e947
commit fcbcd813df

View File

@ -16,10 +16,13 @@
<td>{$value}</td>
{/foreach}
<td class="actions">
{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"}
</td>
</tr>
{/foreach}