Files
afup/htdocs/templates/administration/compta_conf_operation.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&amp;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>&nbsp;</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&amp;action=modifier&amp;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}