fixed serve
This commit is contained in:
parent
db555fa3b3
commit
1dc9d35475
10 changed files with 66 additions and 116 deletions
|
@ -3,9 +3,9 @@
|
|||
{% block main %}
|
||||
|
||||
<form action="/bulksort" method="POST">
|
||||
<select name="category">
|
||||
{% for c in categories %}
|
||||
<option value="{{ c.id }}">{{ c.full_name() }}</option>
|
||||
<select name="tag">
|
||||
{% for tag in tags %}
|
||||
<option value="{{ tag.id }}">{{ tag.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit">
|
||||
|
@ -28,11 +28,11 @@
|
|||
<td class="border px-4 py-2">{{ t.name }}<br/> <span class="text-gray-500">{{t.iban}}</span></td>
|
||||
<td class="border px-4 py-2">{{ t.description }}</td>
|
||||
<td class="border px-4 py-2 text-right {{ 'text-green-500' if t.is_positive() else 'text-red-500' }}">{{ t.pretty_amount() }} €</td>
|
||||
{% if t.category %}
|
||||
<td class="border px-4 py-2"> <a href="/category/{{ t.category.name }}"> {{ t.category.full_name()}}</a></td>
|
||||
{% else %}
|
||||
<td class="border px-4 py-2"> - </td>
|
||||
{% endif %}
|
||||
<td class="border px-4 py-2">
|
||||
{% for tag in t.tags %}
|
||||
<span style="background-color: {{ tag.color() }};" class="text-white rounded p-1" >{{ tag.name }}</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue