Modernisation liste clients + mise en commentaire fonctionnalité non implémentée

This commit is contained in:
bohwaz 2021-12-17 12:44:02 +01:00
parent 530f0886b3
commit 6db516f5b2

View File

@ -10,7 +10,11 @@
<table class="list">
<thead class="userOrder">
<tr>
{if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)}<td class="check"><input type="checkbox" title="Tout cocher / décocher" /></td>{/if}
{* FIXME
{if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)}
<td class="check"><input type="checkbox" title="Tout cocher / décocher" /></td>
{/if}
*}
{foreach from=$champs key="c" item="champ"}
<td>{if $c == "numero"}#{else}{$champ.title}{/if} </td>
{/foreach}
@ -20,10 +24,13 @@
<tbody>
{foreach from=$clients item="membre"}
<tr>
{if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)}<td class="check">
{input type="checkbox" name="selected" value=$membre.id default=0}
</td>
{/if}
{* FIXME
{if $session->canAccess($session::SECTION_USERS, $session::ACCESS_ADMIN)}
<td class="check">
{input type="checkbox" name="selected" value=$membre.id default=0}
</td>
{/if}
*}
{foreach from=$champs key="c" item="cfg"}
<td>
{if $c == 'nom'}<a href="{plugin_url file="client.php"}?id={$membre.id}">{/if}
@ -32,15 +39,19 @@
</td>
{/foreach}
<td class="tabs">
<a class="icn" href="{plugin_url file="client.php"}?id={$membre.id}" title="Fiche membre">👤</a>
{if $session->canAccess($session::SECTION_USERS, $session::ACCESS_WRITE)}<a class="icn" href="{plugin_url file="client_modifier.php"}?id={$membre.id}" title="Modifier la fiche membre">✎</a>{/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}
</td>
</tr>
{/foreach}
</tbody>
{* 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}
*}
</table>
{else}
<p class="alert block">