modifications cosmétiques
This commit is contained in:
parent
f41caf7ad7
commit
551097fbd1
@ -18,8 +18,7 @@
|
||||
|
||||
{{if $subsubcurrent == 'mouvements'}}
|
||||
<ul class="sub">
|
||||
<li class="title"><strong>{{$eqpmt}} ({{$category}})</strong></li>
|
||||
<li class="current"><a>Mouvements</a></li>
|
||||
<li class="title"><strong>Mouvements de {{$eqpmt}} ({{$category}})</strong></li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{elseif $current == 'config'}}
|
||||
|
@ -33,7 +33,7 @@
|
||||
{{:form_errors}}
|
||||
|
||||
{{* formulaire d'ajout de catégorie *}}
|
||||
<form method="post" action="{{$self_url}}">
|
||||
<form method="post" action="{{$self_url}}" data-focus="1">
|
||||
<fieldset class="ajout_categorie">
|
||||
<legend>Ajouter une catégorie</legend>
|
||||
<dl>
|
||||
|
@ -29,7 +29,7 @@
|
||||
{{:form_errors}}
|
||||
|
||||
{{* formulaire de modification de catégorie *}}
|
||||
<form method="post" action="">
|
||||
<form method="post" action="" data-focus="1">
|
||||
<fieldset class="modif_categorie">
|
||||
<legend>Modifier la catégorie « {{$category.name}} »</legend>
|
||||
<dl>
|
||||
|
@ -48,7 +48,7 @@
|
||||
<td>{{$type}}</td>
|
||||
<td class="actions">
|
||||
{{if ! $locked_inputs|has:$label}}
|
||||
{{:linkbutton label="Supprimer" shape="minus" href="config/supprimer_type_mouvement.html?dir=input&mvt=%s"|args:$label target="_dialog"}}
|
||||
{{:linkbutton label="Supprimer" shape="delete" href="config/supprimer_type_mouvement.html?dir=input&mvt=%s"|args:$label target="_dialog"}}
|
||||
{{/if}}
|
||||
{{:linkbutton label="Modifier" shape="edit" href="config/modifier_type_mouvement.html?dir=output&mvt=%s"|args:$label target="_dialog"}}
|
||||
</td>
|
||||
@ -73,7 +73,7 @@
|
||||
<td>{{$type}}</td>
|
||||
<td class="actions">
|
||||
{{if ! $locked_outputs|has:$label}}
|
||||
{{:linkbutton label="Supprimer" shape="minus" href="config/supprimer_type_mouvement.html?dir=output&mvt=%s"|args:$label target="_dialog"}}
|
||||
{{:linkbutton label="Supprimer" shape="delete" href="config/supprimer_type_mouvement.html?dir=output&mvt=%s"|args:$label target="_dialog"}}
|
||||
{{/if}}
|
||||
{{:linkbutton label="Modifier" shape="edit" href="config/modifier_type_mouvement.html?dir=output&mvt=%s"|args:$label target="_dialog"}}
|
||||
</td>
|
||||
|
@ -72,11 +72,6 @@
|
||||
<fieldset>
|
||||
<legend>Type d'entrée</legend>
|
||||
<dl>
|
||||
<td>{{:input
|
||||
type="text"
|
||||
label="Libellé de l'entrée"
|
||||
name="input_fields[label]"
|
||||
required=true}}</td>
|
||||
<td>
|
||||
{{:input type="select"
|
||||
label="Type d'entrée"
|
||||
@ -86,6 +81,13 @@
|
||||
required=true
|
||||
default_empty="— Choisir un type —"}}
|
||||
</td>
|
||||
<td>
|
||||
{{:input
|
||||
type="text"
|
||||
label="Libellé de l'entrée"
|
||||
name="input_fields[label]"
|
||||
required=true}}
|
||||
</td>
|
||||
</dl>
|
||||
<div class="help block">
|
||||
<h3>Signification du type d'entrée</h3>
|
||||
@ -110,11 +112,6 @@
|
||||
<fieldset>
|
||||
<legend>Type de sortie</legend>
|
||||
<dl>
|
||||
<td>{{:input
|
||||
type="text"
|
||||
label="Libellé de la sortie"
|
||||
name="output_fields[label]"
|
||||
required=true}}</td>
|
||||
<td>
|
||||
{{:input type="select"
|
||||
label="Type de sortie"
|
||||
@ -124,6 +121,13 @@
|
||||
required=true
|
||||
default_empty="— Choisir un type —"}}
|
||||
</td>
|
||||
<td>
|
||||
{{:input
|
||||
type="text"
|
||||
label="Libellé de la sortie"
|
||||
name="output_fields[label]"
|
||||
required=true}}
|
||||
</td>
|
||||
</dl>
|
||||
<div class="help block">
|
||||
<h3>Signification du type de sortie</h3>
|
||||
|
@ -116,17 +116,15 @@
|
||||
|
||||
{{* lister tous les mouvements du matériel passé en paramètre *}}
|
||||
{{if $_GET.prop}}
|
||||
<h3>Matériel propriété de l'association</h3>
|
||||
|
||||
{{#list
|
||||
type="movement"
|
||||
select="$$.date AS 'Date';
|
||||
CASE $$.direction WHEN 'input' THEN 'Entrée' WHEN 'output' THEN 'Sortie' END AS 'Mvt';
|
||||
CASE $$.direction WHEN 'input' THEN 'Entrée' WHEN 'output' THEN 'Sortie' END AS 'Mouvement';
|
||||
CASE $$.direction WHEN 'input' THEN $$.input_nature WHEN 'output' THEN $$.output_nature END AS 'Opération';
|
||||
$$.amount AS 'Quantité';
|
||||
"" as 'Stock';
|
||||
"" as 'Sorti';
|
||||
"" as 'Dispo';
|
||||
"" as 'Disponible';
|
||||
$$.comment AS 'Commentaire'"
|
||||
equipment=$equipment_key
|
||||
order=1
|
||||
@ -170,12 +168,10 @@
|
||||
{{/list}}
|
||||
|
||||
{{else}}
|
||||
<h3>Matériel temporairement dans l'association</h3>
|
||||
|
||||
{{#list
|
||||
type="movement"
|
||||
select="$$.date AS 'Date';
|
||||
CASE $$.direction WHEN 'input' THEN 'Entrée' WHEN 'output' THEN 'Sortie' END AS 'Mvt';
|
||||
CASE $$.direction WHEN 'input' THEN 'Entrée' WHEN 'output' THEN 'Sortie' END AS 'Mouvement';
|
||||
CASE $$.direction WHEN 'input' THEN $$.input_nature WHEN 'output' THEN $$.output_nature END AS 'Opération';
|
||||
$$.amount AS 'Quantité';
|
||||
"" as 'Présent';
|
||||
|
@ -8,7 +8,7 @@
|
||||
{{:include file="./_calcul_dispo.html" keep="categories,equipments"}}
|
||||
|
||||
{{* Sélecteur catégories *}}
|
||||
<fieldset class="shortForm" style="width: 30%;">
|
||||
<fieldset class="shortFormRight">
|
||||
<legend>Filtrer par catégorie</legend>
|
||||
<nav class="dropdown">
|
||||
<ul>
|
||||
@ -25,6 +25,10 @@
|
||||
</nav>
|
||||
</fieldset>
|
||||
|
||||
<div class="shortFormLeft">
|
||||
<p class="help">Inventaire des matériels propriété de l'association</p>
|
||||
</div>
|
||||
|
||||
{{* Vérifier s'il y a au moins un matériel propriété de l'asso *}}
|
||||
{{:assign mat_present=false}}
|
||||
{{#foreach from=$equipments key=key item=eqpmt}}
|
||||
@ -35,9 +39,6 @@
|
||||
{{/foreach}}
|
||||
|
||||
{{if $mat_present}}
|
||||
|
||||
<h2>Matériels propriété de l'association</h2>
|
||||
|
||||
{{#list
|
||||
select="
|
||||
$$.designation AS 'Matériel' ;
|
||||
@ -82,7 +83,7 @@
|
||||
{{if $dispo > 0}}
|
||||
{{:linkbutton
|
||||
label="Sortie"
|
||||
shape="plus"
|
||||
shape="minus"
|
||||
href="mouvements/sorties/stock_disponible.html?key=%s"|args:$eqpmt_key
|
||||
target="_dialog"}}
|
||||
{{/if}}
|
||||
|
@ -8,7 +8,7 @@
|
||||
{{:include file="./_calcul_dispo.html" keep="categories,equipments"}}
|
||||
|
||||
{{* Sélecteur catégories *}}
|
||||
<fieldset class="shortForm" style="width: 30%;">
|
||||
<fieldset class="shortFormRight"">
|
||||
<legend>Filtrer par catégorie</legend>
|
||||
<nav class="dropdown">
|
||||
<ul>
|
||||
@ -25,6 +25,10 @@
|
||||
</nav>
|
||||
</fieldset>
|
||||
|
||||
<div class="shortFormLeft">
|
||||
<p class="help shortFormLeft">Inventaire des matériels empruntés ou loués</p>
|
||||
</div>
|
||||
|
||||
{{* Vérifier s'il y a au moins un matériel non propriété de l'asso *}}
|
||||
{{:assign mat_present=false}}
|
||||
{{#foreach from=$equipments key=key item=eqpmt}}
|
||||
@ -35,9 +39,6 @@
|
||||
{{/foreach}}
|
||||
|
||||
{{if $mat_present}}
|
||||
|
||||
<h2>Matériels temporairement dans l'association</h2>
|
||||
|
||||
{{#list
|
||||
select="
|
||||
$$.designation AS 'Matériel' ;
|
||||
|
@ -180,11 +180,11 @@
|
||||
{{if $_GET.direction == "input"}}
|
||||
<legend>Créer une copie de l'entrée « {{$mvt_nature}} {{$eqpmt.designation}} ({{$amount_init}}) en date du {{$date_init}} »</legend>
|
||||
<dl>
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$input_labels default=$nature_defaut}}
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$input_labels|sort default=$nature_defaut}}
|
||||
{{else}}
|
||||
<legend>Créer une copie de la sortie « {{$mvt_nature}} {{$eqpmt.designation}} ({{$amount_init}}) en date du {{$date_init}} »</legend>
|
||||
<dl>
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$output_labels default=$nature_defaut}}
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$output_labels|sort default=$nature_defaut}}
|
||||
{{/if}}
|
||||
{{:input type="date" name="date" label="Date" required=true default=$mvt_new.date}}
|
||||
{{:input type="text" name="designation" label="Matériel" disabled=true default=$eqpmt.designation}}
|
||||
|
@ -70,7 +70,7 @@
|
||||
<fieldset class="entree">
|
||||
<legend>Ajouter une entrée de matériel</legend>
|
||||
<dl>
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$input_labels}}
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$input_labels|sort}}
|
||||
{{:input type="date" name="date" label="Date" required=true default=$now|date_short}}
|
||||
{{:input type="text" name="equipment" label="Matériel" required=true disabled=true default=$equipment.designation}}
|
||||
{{:input type="text" name="category" label="Catégorie" required=true disabled=true default=$category.name}}
|
||||
|
@ -80,7 +80,7 @@
|
||||
<fieldset class="entree">
|
||||
<legend>Ajouter un retour de matériel</legend>
|
||||
<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|sort}}
|
||||
{{:input type="date" name="date" label="Date" required=true default=$now|date_short}}
|
||||
{{:input type="text" name="equipment" label="Matériel" required=true disabled=true default=$equipment.designation}}
|
||||
{{:input type="text" name="category" label="Catégorie" required=true disabled=true default=$cat_name}}
|
||||
|
@ -172,11 +172,11 @@
|
||||
{{if $_GET.direction == "input"}}
|
||||
<legend>Modifier l'entrée « {{$mvt_nature}} {{$eqpmt.designation}} ({{$amount_init}}) en date du {{$date_init}} »</legend>
|
||||
<dl>
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$input_labels default=$nature_defaut}}
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$input_labels|sort default=$nature_defaut}}
|
||||
{{else}}
|
||||
<legend>Modifier la sortie « {{$mvt_nature}} {{$eqpmt.designation}} ({{$amount_init}}) en date du {{$date_init}} »</legend>
|
||||
<dl>
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$output_labels default=$nature_defaut}}
|
||||
{{:input type="select" name="nature_operation" label="Type" required=true options=$output_labels|sort default=$nature_defaut}}
|
||||
{{/if}}
|
||||
{{:input type="date" name="date" label="Date" required=true default=$mvt_new.date}}
|
||||
{{:input type="text" name="designation" label="Matériel" disabled=true default=$eqpmt.designation}}
|
||||
|
@ -119,7 +119,7 @@
|
||||
<fieldset class="sortie">
|
||||
<legend>Ajouter une sortie d'un matériel présent temporairement</legend>
|
||||
<dl>
|
||||
{{:input type="select" name="type_operation" label="Type" required=true options=$output_labels}}
|
||||
{{:input type="select" name="type_operation" label="Type" required=true options=$output_labels|sort}}
|
||||
{{:input type="date" name="date" label="Date de sortie" required=true default=$now|date_short}}
|
||||
{{:input type="text" name="equipment" label="Matériel" required=true disabled=true default=$equipment.designation}}
|
||||
{{:input type="text" name="category" label="Catégorie" required=true disabled=true default=$cat_name}}
|
||||
|
@ -139,7 +139,7 @@
|
||||
<fieldset class="sortie">
|
||||
<legend>Ajouter une sortie de matériel</legend>
|
||||
<dl>
|
||||
{{:input type="select" name="type_operation" label="Type" required=true options=$output_labels}}
|
||||
{{:input type="select" name="type_operation" label="Type" required=true options=$output_labels|sort}}
|
||||
{{:input type="date" name="date" label="Date de sortie" required=true default=$now|date_short}}
|
||||
{{:input type="text" name="equipment" label="Matériel" required=true disabled=true default=$equipment.designation}}
|
||||
{{:input type="text" name="category" label="Catégorie" required=true disabled=true default=$cat_name}}
|
||||
|
Loading…
Reference in New Issue
Block a user