58 lines
2.4 KiB
HTML
58 lines
2.4 KiB
HTML
{include="header"}
|
|
|
|
{if condition="empty($id)"}
|
|
<h2>Liste des remboursements globaux</h2>
|
|
{if condition="$global_paybacks !== FALSE"}
|
|
<dl>
|
|
{loop="$global_paybacks"}
|
|
<dt>{$value->getDate()}</dt>
|
|
<dd>
|
|
{if condition="$value->getClosed() !== false"}
|
|
<a href="?do=see_paybacks&id={$value->getId()}" onclick="return confirm('Etes-vous sur de vouloir confirmer ce remboursement ? Cette action ne peut etre annulée facilement.');">Remboursement n°{$value->getId()}</a>
|
|
{else}
|
|
[Terminé] Remboursement n°{$value->getId()}
|
|
{/if}
|
|
</dd>
|
|
{/loop}
|
|
</dl>
|
|
{else}
|
|
<p>Aucun remboursement global disponible pour l'instant.</p>
|
|
{/if}
|
|
{else}
|
|
{if condition="$global_paybacks === false"}
|
|
Remboursement inexistant.
|
|
{else}
|
|
<h2>Remboursement n°{$global_paybacks->getId()}</h2>
|
|
{$table=$global_paybacks->getUsersIn()->get()}
|
|
<table id="global_paybacks_table">
|
|
<tr>
|
|
<th>Doit / À</th>
|
|
{loop="$global_paybacks->getUsersIn()->get()"}
|
|
<th>{$users[$key1]->getDisplayName()}</th>
|
|
{/loop}
|
|
</tr>
|
|
{loop="$global_paybacks->getUsersIn()->get()"}
|
|
<tr>
|
|
<th>{$users[$key1]->getDisplayName()}</th>
|
|
{loop="$global_paybacks->getUsersIn()->get()"}
|
|
{if condition="$key1 == $key2"}
|
|
<td class="cell-disabled"></td>
|
|
{else}
|
|
<td>
|
|
{if condition="$table[$key1][$key2] != 0"}
|
|
<a href="?do=confirm_global_paybacks&from={$key1}&to={$key2}&payback_id={$global_paybacks->getId()}" title="Confirmer le remboursement">{$table[$key1][$key2]}</a>
|
|
{else}
|
|
-
|
|
{/if}
|
|
</td>
|
|
{/if}
|
|
{/loop}
|
|
</tr>
|
|
{/loop}
|
|
</table>
|
|
{/if}
|
|
|
|
<p class="center"><a href="?do=see_paybacks">Retour à la liste des remboursements</a></p>
|
|
{/if}
|
|
{include="footer"}
|