Petites améliorations et corrections

This commit is contained in:
Jean-Christophe Engel 2026-04-29 12:03:51 +02:00
parent e31286f440
commit d6fd5b4047
4 changed files with 24 additions and 11 deletions

View file

@ -154,11 +154,11 @@
<tr {{if $ignore}}class="checked"{{/if}}>
<td class="check">{{:input type="checkbox" name="selected[]" value=$trans_id}}</td>
<td class="num"><a href={{$trans_url}}>#{{$trans_id}}</a></td>
<td class="num"><a href="{{$trans_url}}">#{{$trans_id}}</a></td>
<td>{{$trans_date|date_short}}</td>
<td>{{$trans_label}}</td>
<td class="money">{{"%f"|math:$debit|money_html:false|raw}}</td>
<td class="account_code"><a href={{$compte_url}}>{{$account_code}}</a></td>
<td class="account_code"><a href="{{$compte_url}}">{{$account_code}}</a></td>
<td>{{$account_label}}</td>
<td class="actions">
{{:linkbutton

View file

@ -62,7 +62,7 @@
<div class="informations">
<dl class="describe">
<dt>Écriture</dt>
<dd><span class="num"><a href={{$trans_url}}>#{{$ligne_immo.trans_id}}</a></span> {{$ligne_immo.label}}</dd>
<dd><span class="num"><a href="{{$trans_url}}">#{{$ligne_immo.trans_id}}</a></span> {{$ligne_immo.label}}</dd>
<dt>Montant</dt>
<dd class="money strong">{{"%f"|math:$ligne_immo.amount|money_currency_html:false|raw}}</dd>
</dl>

View file

@ -14,14 +14,13 @@ function toggleInputs(idcb, idfields) {
function toggleVisibility(idcheck, fields) {
const elem = document.getElementById(idcheck);
for (let id of fields) {
const field = document.getElementById(id);
fields.forEach(function (field) {
if (elem.checked) {
field.setAttribute('class', '');
field.classList.remove('hidden');
} else {
field.setAttribute('class', 'hidden');
field.classList.add('hidden');
}
}
});
}
// fixer l'exercice des sélecteurs de compte

View file

@ -35,17 +35,15 @@ h2[class="aide"], h3[class="aide"] {
}
.informations dl.describe {
grid-template-columns : 20rem 1fr;
grid-template-columns : 25rem 1fr;
}
.informations dl.describe > dt {
flex: 0 0 15rem;
margin-right: 0;
white-space: nowrap;
}
.informations dl.describe > dd {
flex: 0 0 calc(100% - 20rem);
margin-right: 0;
}
@ -76,7 +74,23 @@ table.list tbody tr.ignored:nth-child(even) {
font-style: italic;
background: rgba(255, 255, 200, 0.5);
}
html.dark table.list tbody tr.ignored:nth-child(odd) {
font-style: italic;
background: rgba(100, 100, 0, 0.4);
}
html.dark table.list tbody tr.ignored:nth-child(even) {
font-style: italic;
background: rgba(100, 100, 0, 0.4);
}
html.dialog.dark {
filter: none !important;
}
html.dialog.dark main {
background-color : #ddd;
}
html.dark .block.alert {
background-color : rgba(87, 206, 235, 0.5);
}