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