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

@ -1,5 +1,5 @@
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
{{:admin_header title="Supprimer une catégorie" current="module_equipment"}}
{{:admin_header title="Modifier une catégorie" current="module_equipment"}}
{{#load key=$_GET.id assign="category"}}
{{else}}
@ -14,7 +14,7 @@
type="category"
name=$_POST.name|trim
}}
{{:redirect to="./index.html?ok=1"}}
{{:redirect force="./index.html?ok=1&msg=Catégorie modifiée"}}
{{/form}}
{{:form_errors}}
@ -31,5 +31,3 @@
</p>
</fieldset>
</form>
{{:admin_footer}}