Archivage plusieurs documents et interdiction modifier doc archivé
This commit is contained in:
parent
a80bebcc4e
commit
79b3a72cca
7 changed files with 60 additions and 17 deletions
|
|
@ -7,13 +7,15 @@
|
|||
|
||||
{form_errors}
|
||||
|
||||
<form method="post" action="{$self_url}">
|
||||
{if $list->count()}
|
||||
{include file="common/dynamic_list_head.tpl"}
|
||||
|
||||
{foreach from=$list->iterate() item="facture"}
|
||||
<tr>
|
||||
<td>{$facture.type}</td>
|
||||
<th><a href="facture.php?id={$facture.id}">{$facture.numero}</a></th>
|
||||
<tr>
|
||||
<td>{if ! $archive}{input type="checkbox" name="selected[]" value=$facture.id}{/if}</td>
|
||||
<td>{$facture.type}</td>
|
||||
<th><a href="facture.php?id={$facture.id}&archive={$archive}">{$facture.numero}</a></th>
|
||||
{if $facture.receveur_membre}
|
||||
<td>{link href="!users/details.php?id=%d"|args:$facture.receveur_id label=$facture.receveur}</td>
|
||||
{else}
|
||||
|
|
@ -24,7 +26,6 @@
|
|||
<td>{$facture.date_emission|date:'d/m/Y'}</td>
|
||||
<td>{$facture.date_echeance|date:'d/m/Y'}</td>
|
||||
<td>{$facture.reglee}</td>
|
||||
<td>{$facture.archivee}</td>
|
||||
<td>{$facture.moyen_paiement}</td>
|
||||
<td>{$facture.contenu|escape|nl2br}</td>
|
||||
<td>{$facture.total|escape|money_currency}</td>
|
||||
|
|
@ -44,8 +45,14 @@
|
|||
{linkbutton href="?export=csv" label="Export CSV" shape="download"}
|
||||
{linkbutton href="?export=ods" label="Export tableur" shape="download"}
|
||||
</p>
|
||||
{if !$archive}
|
||||
<p class="submit">
|
||||
{csrf_field key="archiver_factures"}
|
||||
{button type="submit" name="archiver" label="Archiver les factures sélectionnées" shape="right" class="main"}
|
||||
</p>
|
||||
{/if}
|
||||
{else}
|
||||
<p class="help">Aucun document, vous pouvez commencer par {link href="facture_ajouter.php" label="créer un nouveau document"}.</p>
|
||||
{/if}
|
||||
|
||||
</form>
|
||||
{include file="_foot.tpl"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue