Compare commits
No commits in common. "8c81d07efc5e8e6b3fc792ab0b28fcd2b9348158" and "b2d6254a0c6862cc887a6e4c73f10ce3a953e65a" have entirely different histories.
8c81d07efc
...
b2d6254a0c
4 changed files with 6 additions and 8 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
{{#form on="delete"}}
|
{{#form on="delete"}}
|
||||||
{{* Vérifier s'il reste des matériels dans cette catégorie *}}
|
{{* Vérifier s'il reste des matériels dans cette catégorie *}}
|
||||||
{{#load type="equipment" category=$_GET.key limit="1"}}
|
{{#load type="equipment" category=$_GET.key assign="equipment"}}
|
||||||
{{:redirect force="./index.html?err=1&msg=suppression"}}
|
{{:redirect force="./index.html?err=1&msg=suppression"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{* supprimer la catégorie sélectionnée*}}
|
{{* supprimer la catégorie sélectionnée*}}
|
||||||
|
|
|
@ -27,17 +27,15 @@
|
||||||
{{:assign category_key=$key}}
|
{{:assign category_key=$key}}
|
||||||
{{* voir s'il y a des matériels dans cette catégorie *}}
|
{{* voir s'il y a des matériels dans cette catégorie *}}
|
||||||
{{:assign materiel_present=true}}
|
{{:assign materiel_present=true}}
|
||||||
{{#load type="equipment" where="$$.category = :category_key" :category_key=$category_key limit=1}}
|
{{#load type="equipment" where="$$.category = :category_key" :category_key=$category_key}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:assign materiel_present=false}}
|
{{:assign materiel_present=false}}
|
||||||
{{/load}}
|
{{/load}}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{$name}}</th>
|
<th>{{$name}}</th>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
{{if ! $materiel_present}}
|
|
||||||
{{:linkbutton label="Supprimer" href="delete_category.html?key=%s"|args:$key shape="delete" target="_dialog"}}
|
|
||||||
{{/if}}
|
|
||||||
{{:linkbutton label="Modifier" href="modify_category.html?key=%s"|args:$key shape="edit" target="_dialog"}}
|
{{:linkbutton label="Modifier" href="modify_category.html?key=%s"|args:$key shape="edit" target="_dialog"}}
|
||||||
|
{{:linkbutton label="Supprimer" href="delete_category.html?key=%s"|args:$key shape="delete" target="_dialog"}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{$date|date_short}}</td>
|
<td>{{$date|date_short}}</td>
|
||||||
<td>{{$col2}}</td>
|
<td>{{$col2}}</td>
|
||||||
<td class="nosort">{{$op_label}}</td>
|
<td>{{$op_label}}</td>
|
||||||
<td class="num">{{$amount}}</td>
|
<td class="num">{{$amount}}</td>
|
||||||
<td class="num nosort">{{$stock}}</td>
|
<td class="num nosort">{{$stock}}</td>
|
||||||
<td class="num nosort">{{$exterieur}}</td>
|
<td class="num nosort">{{$exterieur}}</td>
|
||||||
|
@ -291,7 +291,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{$date|date_short}}</td>
|
<td>{{$date|date_short}}</td>
|
||||||
<td>{{$col2}}</td>
|
<td>{{$col2}}</td>
|
||||||
<td class="nosort">{{$op_label}}</td>
|
<td>{{$op_label}}</td>
|
||||||
<td class="num">{{$amount}}</td>
|
<td class="num">{{$amount}}</td>
|
||||||
<td class="num nosort">{{$stock}}</td>
|
<td class="num nosort">{{$stock}}</td>
|
||||||
<td>{{$col6}}</td>
|
<td>{{$col6}}</td>
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* désactiver rétroaction pour colonnes non triables */
|
/* désactiver rétroaction pour colonnes non triables */
|
||||||
table.list > thead th[class~=nosort] a:hover {
|
table.list > thead td[class~=nosort] a:hover {
|
||||||
background-color : rgba(var(--gSecondColor), 0.);
|
background-color : rgba(var(--gSecondColor), 0.);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue