Petites améliorations et corrections
This commit is contained in:
parent
e31286f440
commit
d6fd5b4047
4 changed files with 24 additions and 11 deletions
|
|
@ -154,11 +154,11 @@
|
||||||
|
|
||||||
<tr {{if $ignore}}class="checked"{{/if}}>
|
<tr {{if $ignore}}class="checked"{{/if}}>
|
||||||
<td class="check">{{:input type="checkbox" name="selected[]" value=$trans_id}}</td>
|
<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_date|date_short}}</td>
|
||||||
<td>{{$trans_label}}</td>
|
<td>{{$trans_label}}</td>
|
||||||
<td class="money">{{"%f"|math:$debit|money_html:false|raw}}</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>{{$account_label}}</td>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
<div class="informations">
|
<div class="informations">
|
||||||
<dl class="describe">
|
<dl class="describe">
|
||||||
<dt>Écriture</dt>
|
<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>
|
<dt>Montant</dt>
|
||||||
<dd class="money strong">{{"%f"|math:$ligne_immo.amount|money_currency_html:false|raw}}</dd>
|
<dd class="money strong">{{"%f"|math:$ligne_immo.amount|money_currency_html:false|raw}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,13 @@ function toggleInputs(idcb, idfields) {
|
||||||
|
|
||||||
function toggleVisibility(idcheck, fields) {
|
function toggleVisibility(idcheck, fields) {
|
||||||
const elem = document.getElementById(idcheck);
|
const elem = document.getElementById(idcheck);
|
||||||
for (let id of fields) {
|
fields.forEach(function (field) {
|
||||||
const field = document.getElementById(id);
|
|
||||||
if (elem.checked) {
|
if (elem.checked) {
|
||||||
field.setAttribute('class', '');
|
field.classList.remove('hidden');
|
||||||
} else {
|
} else {
|
||||||
field.setAttribute('class', 'hidden');
|
field.classList.add('hidden');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// fixer l'exercice des sélecteurs de compte
|
// fixer l'exercice des sélecteurs de compte
|
||||||
|
|
|
||||||
20
style.css
20
style.css
|
|
@ -35,17 +35,15 @@ h2[class="aide"], h3[class="aide"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.informations dl.describe {
|
.informations dl.describe {
|
||||||
grid-template-columns : 20rem 1fr;
|
grid-template-columns : 25rem 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.informations dl.describe > dt {
|
.informations dl.describe > dt {
|
||||||
flex: 0 0 15rem;
|
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.informations dl.describe > dd {
|
.informations dl.describe > dd {
|
||||||
flex: 0 0 calc(100% - 20rem);
|
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,7 +74,23 @@ table.list tbody tr.ignored:nth-child(even) {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
background: rgba(255, 255, 200, 0.5);
|
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 {
|
html.dialog.dark {
|
||||||
filter: none !important;
|
filter: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html.dialog.dark main {
|
||||||
|
background-color : #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .block.alert {
|
||||||
|
background-color : rgba(87, 206, 235, 0.5);
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue