Ajout enregistrement durée si manquante
This commit is contained in:
parent
f682d37b1c
commit
406408d47e
|
@ -0,0 +1,44 @@
|
|||
{{* -*- brindille -*- *}}
|
||||
|
||||
{{:admin_header title="Renseigner durée amortissement" custom_css=$custom_css current="module_amortissement"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
{{if ! $dialog}}
|
||||
{{:include file="_nav.html" current="index"}}
|
||||
{{/if}}
|
||||
|
||||
{{* renseigner la durée d'amortissement *}}
|
||||
|
||||
<h2 class="ruler">Durée d'amortissement</h2>
|
||||
|
||||
{{* Traiter l'envoi du formulaire *}}
|
||||
{{#form on="add"}}
|
||||
{{* enregistrer les infos de l'immobilisation *}}
|
||||
{{:assign var="line_id" value=$_GET.line_id|intval}}
|
||||
{{:assign key=""|uuid}}
|
||||
{{:save
|
||||
key=$key
|
||||
validate_schema="schema.json"
|
||||
type="immo"
|
||||
line=$line_id
|
||||
duration=$_POST.duree|intval
|
||||
}}
|
||||
|
||||
{{:redirect force="index.html?ok=1&msg=durée"}}
|
||||
{{/form}}
|
||||
|
||||
<form method="post" action="">
|
||||
<fieldset class="ajout_duree">
|
||||
<legend>Renseigner durée amortissement</legend>
|
||||
<dl>
|
||||
{{:input type="number" name="duree" label="Durée d'amortissement" required=true default=1}}
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<p class="submit">
|
||||
{{:button type="submit" name="add" label="Ajouter" shape="right" class="main"}}
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
{{:admin_footer}}
|
Loading…
Reference in New Issue