Enhance invoice display with improved CSS styling and update invoice links

Fix 
This commit is contained in:
Edgar P. Burkhart 2025-01-05 18:51:59 +01:00
parent a277b37526
commit 4974c30397
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 12 additions and 1 deletions
nummi
main/static/main/css
transaction/templates/transaction

View file

@ -387,6 +387,9 @@ ul.invoices {
> * {
&.title {
font-weight: 650;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
@ -423,6 +426,10 @@ ul.statements {
}
}
ul.invoices {
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}
.statement-details {
display: grid;
@media (width > 720px) {

View file

@ -3,7 +3,11 @@
<ul class="invoices">
{% for invoice in invoices %}
<li>
{% if not transaction %}<span>{{ invoice.transaction.name }}</span>{% endif %}
{% if not transaction %}
<a class="transaction" href="{{ invoice.transaction.get_absolute_url }}">
{{ "receipt"|remix }}{{ invoice.transaction.name }}
</a>
{% endif %}
<a class="title" href="{{ invoice.file.url }}">{{ "file"|remix }}{{ invoice.name }} [{{ invoice.file|extension }}]</a>
{% if transaction %}
<a href="{{ invoice.get_absolute_url }}">{{ "file-edit"|remix }}{% translate "Edit" %}</a>