2024-02-27 10:14:52 +01:00
|
|
|
{{* -*- 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 *}}
|
2024-03-14 11:03:54 +01:00
|
|
|
{{:assign var="immo_id" value=$_GET.immo_id|intval}}
|
2024-02-27 10:14:52 +01:00
|
|
|
{{:assign key=""|uuid}}
|
|
|
|
{{:save
|
|
|
|
key=$key
|
|
|
|
validate_schema="schema.json"
|
|
|
|
type="immo"
|
2024-03-14 11:03:54 +01:00
|
|
|
line=$immo_id
|
2024-02-27 10:14:52 +01:00
|
|
|
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}}
|