Ajout archivage factures
This commit is contained in:
parent
79b3a72cca
commit
745de00331
4 changed files with 29 additions and 14 deletions
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
{foreach from=$list->iterate() item="facture"}
|
||||
<tr>
|
||||
<td>{if ! $archive}{input type="checkbox" name="selected[]" value=$facture.id}{/if}</td>
|
||||
<td>{input type="checkbox" name="selected[]" value=$facture.id}</td>
|
||||
<td>{$facture.type}</td>
|
||||
<th><a href="facture.php?id={$facture.id}&archive={$archive}">{$facture.numero}</a></th>
|
||||
{if $facture.receveur_membre}
|
||||
|
|
@ -40,17 +40,20 @@
|
|||
</table>
|
||||
{$list->getHTMLPagination()|raw}
|
||||
|
||||
<p class="help">
|
||||
Export de la liste :
|
||||
{linkbutton href="?export=csv" label="Export CSV" shape="download"}
|
||||
{linkbutton href="?export=ods" label="Export tableur" shape="download"}
|
||||
</p>
|
||||
{if !$archive}
|
||||
<p class="submit">
|
||||
<div class="submit flex">
|
||||
{if $archive}
|
||||
{csrf_field key="desarchiver_factures"}
|
||||
{button type="submit" name="desarchiver" label="Désarchiver les factures sélectionnées" shape="right"}
|
||||
{else}
|
||||
{csrf_field key="archiver_factures"}
|
||||
{button type="submit" name="archiver" label="Archiver les factures sélectionnées" shape="right" class="main"}
|
||||
</p>
|
||||
{/if}
|
||||
{button type="submit" name="archiver" label="Archiver les factures sélectionnées" shape="right"}
|
||||
{/if}
|
||||
<div>
|
||||
<span class="help">Export de la liste :</span>
|
||||
{linkbutton href="?export=csv" label="Export CSV" shape="download"}
|
||||
{linkbutton href="?export=ods" label="Export tableur" shape="download"}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<p class="help">Aucun document, vous pouvez commencer par {link href="facture_ajouter.php" label="créer un nouveau document"}.</p>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue