Enhance invoice display with improved CSS styling and update invoice links
Fix #47
This commit is contained in:
parent
a277b37526
commit
4974c30397
2 changed files with 12 additions and 1 deletions
nummi
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue