Correction bug si aucune catégorie
This commit is contained in:
parent
57724591c3
commit
2bf414fcf3
@ -67,30 +67,34 @@
|
|||||||
{{:assign var="categories.%s"|args:$category.key value=$category.name}}
|
{{:assign var="categories.%s"|args:$category.key value=$category.name}}
|
||||||
{{/load}}
|
{{/load}}
|
||||||
|
|
||||||
{{* formulaire d'ajout de matériel *}}
|
{{if $categories != null}}
|
||||||
<form method="post" action="">
|
{{* formulaire d'ajout de matériel *}}
|
||||||
|
<form method="post" action="">
|
||||||
|
|
||||||
<fieldset class="entree">
|
<fieldset class="entree">
|
||||||
<legend>Ajouter une entrée d'un matériel non répertorié</legend>
|
<legend>Ajouter une entrée d'un matériel non répertorié</legend>
|
||||||
<dl>
|
<dl>
|
||||||
{{:input type="select" name="type_operation" label="Type" required=true options=$input_labels}}
|
{{:input type="select" name="type_operation" label="Type" required=true options=$input_labels}}
|
||||||
{{:input type="date" name="date" label="Date" required=true default=$now|date_short}}
|
{{:input type="date" name="date" label="Date" required=true default=$now|date_short}}
|
||||||
{{:input type="number" name="quantite" label="Quantité" required=true default=1}}
|
{{:input type="number" name="quantite" label="Quantité" required=true default=1}}
|
||||||
</dl>
|
</dl>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Matériel</legend>
|
<legend>Matériel</legend>
|
||||||
<dl>
|
<dl>
|
||||||
{{:input type="select" name="category" label="Catégorie" required=true options=$categories}}
|
{{:input type="select" name="category" label="Catégorie" required=true options=$categories}}
|
||||||
{{:input type="text" name="designation" label="Désignation" required=true}}
|
{{:input type="text" name="designation" label="Désignation" required=true}}
|
||||||
{{:input type="textarea" name="remarques" label="Remarques" cols="40", rows="3" required=false}}
|
{{:input type="textarea" name="remarques" label="Remarques" cols="40", rows="3" required=false}}
|
||||||
</dl>
|
</dl>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
{{:button type="submit" name="save" label="Enregistrer" shape="right" class="main"}}
|
{{:button type="submit" name="save" label="Enregistrer" shape="right" class="main"}}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
{{else}}
|
||||||
|
<p class="block error">Il n'y a aucune catégorie</p>
|
||||||
|
{{/if}}
|
||||||
{{:admin_footer}}
|
{{:admin_footer}}
|
||||||
|
Loading…
Reference in New Issue
Block a user