From 6db516f5b21ef97a10f10201fab8413e0536c303 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Fri, 17 Dec 2021 12:44:02 +0100 Subject: [PATCH] =?UTF-8?q?Modernisation=20liste=20clients=20+=20mise=20en?= =?UTF-8?q?=20commentaire=20fonctionnalit=C3=A9=20non=20impl=C3=A9ment?= =?UTF-8?q?=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/clients.tpl | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) 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}