From 406408d47ed9042b36e5094993ba26a45c829f8c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Tue, 27 Feb 2024 10:14:52 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20enregistrement=20dur=C3=A9e=20si=20manq?= =?UTF-8?q?uante?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- add_duration.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 add_duration.html diff --git a/add_duration.html b/add_duration.html new file mode 100644 index 0000000..cdc88a6 --- /dev/null +++ b/add_duration.html @@ -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 *}} + +

Durée d'amortissement

+ +{{* 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}} + +
+
+ Renseigner durée amortissement +
+ {{:input type="number" name="duree" label="Durée d'amortissement" required=true default=1}} +
+
+ +

+ {{:button type="submit" name="add" label="Ajouter" shape="right" class="main"}} +

+ +
+ +{{:admin_footer}}