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 $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)}{/if} + {* FIXME + {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)} + + {/if} + *} {foreach from=$champs key="c" item="champ"} {/foreach} @@ -20,10 +24,13 @@ {foreach from=$clients item="membre"} - {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)} - {/if} + {* FIXME + {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)} + + {/if} + *} {foreach from=$champs key="c" item="cfg"} {/foreach} {/foreach} + {* FIXME {if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)} {include file="%s/templates/_list_actions.tpl"|args:$plugin_root colspan=count((array)$champs)} {/if} + *}
{if $c == "numero"}#{else}{$champ.title}{/if}
- {input type="checkbox" name="selected" value=$membre.id default=0} - + {input type="checkbox" name="selected" value=$membre.id default=0} + {if $c == 'nom'}{/if} @@ -32,15 +39,19 @@ - 👤 - {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}
{else}