Suppression catégorie seulement si plus de matériels

This commit is contained in:
Jean-Christophe Engel 2023-10-26 11:55:01 +02:00
parent 96d038464d
commit 909368f9b2
3 changed files with 19 additions and 17 deletions

View file

@ -5,7 +5,11 @@
{{:include file="/%s/_nav.html"|args:$module.name current="categories"}}
{{if $_GET.ok}}
<p class="block confirm">Catégorie enregistrée.</p>
<p class="block confirm">{{$_GET.msg}}</p>
{{else}}
{{if $_GET.err}}
<p class="block error">{{$_GET.msg}}</p>
{{/if}}
{{/if}}
{{* afficher les catégories déjà enregistrées *}}
@ -36,7 +40,7 @@
type="category"
name=$_POST.name|trim
}}
{{:redirect to="./index.html?ok=1"}}
{{:redirect to="./index.html?ok=1&msg=Catégorie enregistrée"}}
{{/form}}
{{:form_errors}}