mirror of
https://git.roflcopter.fr/lesanges/equipment.git
synced 2025-05-24 15:51:41 +02:00
Ajout vérification existence matériel si ajout répertorié
This commit is contained in:
parent
e3b33231a7
commit
fe100333ff
2 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
{{if $_GET.ok}}
|
{{if $_GET.ok}}
|
||||||
<p class="block confirm">{{$_GET.msg}}</p>
|
<p class="block confirm">{{$_GET.msg}}</p>
|
||||||
|
{{else}}
|
||||||
|
<p class="block alert">{{$_GET.msg}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<form method="post" action="">
|
<form method="post" action="">
|
||||||
|
|
|
@ -44,6 +44,11 @@
|
||||||
{{/load}}
|
{{/load}}
|
||||||
{{/load}}
|
{{/load}}
|
||||||
|
|
||||||
|
{{* Vérifier s'il y a au moins un matériel enregistré *}}
|
||||||
|
{{if $equipments|count == 0}}
|
||||||
|
{{:error message="Erreur : il n'y a aucun matériel"}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{* formulaire d'entrée de matériel *}}
|
{{* formulaire d'entrée de matériel *}}
|
||||||
|
|
||||||
<form method="post" action="">
|
<form method="post" action="">
|
||||||
|
|
Loading…
Add table
Reference in a new issue