diff --git a/templates/clients.tpl b/templates/clients.tpl index e733225..aff2899 100644 --- a/templates/clients.tpl +++ b/templates/clients.tpl @@ -10,7 +10,11 @@
{/if} + {* FIXME + {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)} + | + {/if} + *} {foreach from=$champs key="c" item="champ"} | {if $c == "numero"}#{else}{$champ.title}{/if} | {/foreach} @@ -20,10 +24,13 @@|
- {input type="checkbox" name="selected" value=$membre.id default=0} - | - {/if} + {* FIXME + {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)} ++ {input type="checkbox" name="selected" value=$membre.id default=0} + | + {/if} + *} {foreach from=$champs key="c" item="cfg"}{if $c == 'nom'}{/if} @@ -32,15 +39,19 @@ | {/foreach}- 👤 - {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_WRITE)}✎{/if} + {linkbutton shape="user" href="client.php?id=%d"|args:$membre.id label="Fiche client"} + {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_WRITE)} + {linkbutton shape="edit" href="client_modifier.php?id=%d"|args:$membre.id label="Modifier"} + {/if} |