Suppression catégorie seulement si plus de matériels
This commit is contained in:
parent
96d038464d
commit
909368f9b2
3 changed files with 19 additions and 17 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue