Compare commits

...

4 commits
v0.56 ... main

Author SHA1 Message Date
Jean-Christophe Engel
ec16163b53 Mise-à-jour module.ini 2025-10-09 14:22:43 +02:00
Jean-Christophe Engel
8c81d07efc Inhiber tri colonne operation 2025-10-08 14:47:20 +02:00
Jean-Christophe Engel
a56ab4b4ed Correction style colonne non triable 2025-10-08 14:46:48 +02:00
Jean-Christophe Engel
a0293c3e92 Simplification opérations catégories 2025-10-08 14:41:31 +02:00
5 changed files with 9 additions and 7 deletions

View file

@ -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*}}

View file

@ -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">
{{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="Supprimer" href="delete_category.html?key=%s"|args:$key shape="delete" target="_dialog"}}
</td>
</tr>
{{else}}

View file

@ -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>

View file

@ -1,5 +1,5 @@
name="Gestion des matériels"
description="Permet de gérer un inventaire de matériels, ainsi que de suivre les prêts (en test)."
description="Permet de gérer un inventaire de matériels, ainsi que de suivre les prêts."
author="Jean-Christophe Engel"
author_url="https://gitea.zaclys.com/lesanges"
home_button=true

View file

@ -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.);
}