Changement gestion choix année fiscale
FossilOrigin-Name: d6a1c29317cfa870514efff87598a508738ef9d089e52c9b75b0e3e5477a73c9
This commit is contained in:
parent
7d2707eddd
commit
7ca41ea6b7
5 changed files with 90 additions and 23 deletions
20
templates/choix_annee.tpl
Normal file
20
templates/choix_annee.tpl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{include file="admin/_head.tpl" title="Changer d'année fiscale"}
|
||||
|
||||
<form method="post" action="{$self_url}" data-focus="1">
|
||||
<fieldset>
|
||||
<legend>Changer l'année fiscale des reçus</legend>
|
||||
<select id="annee_recu" name="annee_recu">
|
||||
{foreach from=$anneesFiscales item="annee"}
|
||||
<option value="{$annee}" {if $annee == $annee_recu} selected{/if}>{$annee}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</fieldset>
|
||||
<p class="submit">
|
||||
{csrf_field key="acc_select_year"}
|
||||
<input type="hidden" name="from" value="{$from}" />
|
||||
{button type="submit" name="change" label="Changer" shape="right" class="main"}
|
||||
</p>
|
||||
</form>
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
|
|
@ -1,17 +1,14 @@
|
|||
<!-- nav bar -->
|
||||
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="index"}
|
||||
|
||||
<h2>Choisir l'année fiscale</h2>
|
||||
<?php $url = PLUGIN_URL ?>
|
||||
<nav class="acc-year">
|
||||
<h4>Année fiscale sélectionnée :</h4>
|
||||
<h3>{$annee_recu}</h3>
|
||||
<footer>{linkbutton label="Changer d'année fiscale" href="$url/choix_annee.php?from=%s"|args:rawurlencode($self_url) shape="settings"}</footer>
|
||||
</nav>
|
||||
|
||||
<form id="formulaire_saisie" method="post" action="action.php">
|
||||
<fieldset>
|
||||
{* <legend>Choisir l'année fiscale</legend> *}
|
||||
<select id="annee_recu" name="annee_recu">
|
||||
{foreach from=$anneesFiscales item="annee"}
|
||||
<option value="{$annee}" {if $annee == $anneeCourante - 1} selected{/if}>{$annee}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
<div id="choix_methode">
|
||||
<h2>Choisir une méthode de génération des reçus</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue