{include file="_head.tpl" title="Clients — %s"|args:$plugin.name current="plugin_%s"|args:$plugin.id js=1} {include file="%s/templates/_menu.tpl"|args:$plugin_root current="clients"} {if $list->count()} {include file="common/dynamic_list_head.tpl"} {foreach from=$list->iterate() item="row"} {$row.id} {$row.nom} {foreach from=$row item="value" key="key"} {if $key == 'id' || $key == 'nom'} {/if} {$value} {/foreach} {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"} {/foreach}

Export de la liste : {linkbutton href="?export=csv" label="Export CSV" shape="download"} {linkbutton href="?export=ods" label="Export tableur" shape="download"}

{else}

Aucun client trouvé.

{/if} {form_errors}
Ajouter un client
{input type="text" name="nom" label="Nom" required=true} {input type="text" name="adresse" label="Adresse" required=true} {input type="text" name="code_postal" label="Code postal" required=true} {input type="text" name="ville" label="Ville" required=true} {input type="tel" name="telephone" label="Téléphone"} {input type="email" name="email" label="Adresse e-mail"}

{csrf_field key="add_client"} {button type="submit" name="add" label="Enregistrer" shape="right" class="main"}

{include file="_foot.tpl"}