mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-04-26 10:28:07 +02:00
60 lines
2.2 KiB
HTML
60 lines
2.2 KiB
HTML
{if $action == 'lister' }
|
|
<h2>Configuration</h2>
|
|
|
|
<div class="ui top attached tabular menu">
|
|
<a class="item" href="index.php?page=compta_conf_evenement">Événements</a>
|
|
<a class="item" href="index.php?page=compta_conf_categorie">Catégories</a>
|
|
<a class="active item" href="index.php?page=compta_conf_operation">Opérations</a><br />
|
|
<a class="item" href="index.php?page=compta_conf_reglement">Modes de réglements</a><br />
|
|
<a class="item" href="index.php?page=compta_conf_compte">Comptes</a><br />
|
|
</div>
|
|
|
|
<div class="ui bottom attached segment">
|
|
<div class="ui menu">
|
|
<a href="index.php?page=compta_conf_operation&action=ajouter" class="item">
|
|
<div data-tooltip="Ajouter un evenement" data-position="bottom left">
|
|
<i class="icon plus square"></i>
|
|
Ajouter
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<table class="ui table striped compact celled">
|
|
<thead>
|
|
<tr>
|
|
<th>Opérations</a></th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$data item=ecriture}
|
|
<tr>
|
|
<td>{$ecriture.operation}</td>
|
|
<td style="text-align: right">
|
|
<a href="index.php?page=compta_conf_operation&action=modifier&id={$ecriture.id}"
|
|
data-position="left center"
|
|
data-tooltip="Modifier la ligne {$ecriture.description}"
|
|
class="compact ui icon button"
|
|
>
|
|
<i class="pencil alernate icon"></i>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{foreachelse}
|
|
<tr>
|
|
<td><em>Aucune ecriture actuellement</em></td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
{else}
|
|
{if $action == 'ajouter'}
|
|
<h2>Ajouter une opération</h2>
|
|
{else}
|
|
<h2>Modifier une operation</h2>
|
|
{/if}
|
|
{include file="formulaire.html"}
|
|
{/if}
|