ukrywanie akcji
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Data</th>
|
<th>Data</th>
|
||||||
<th>Typ</th>
|
<th>Typ</th>
|
||||||
|
<th>Widoczność</th>
|
||||||
<th class="text-end">Kwota</th>
|
<th class="text-end">Kwota</th>
|
||||||
<th>Opis</th>
|
<th>Opis</th>
|
||||||
<th class="text-end"></th>
|
<th class="text-end"></th>
|
||||||
@@ -43,8 +44,21 @@
|
|||||||
<td>
|
<td>
|
||||||
<span class="badge {{ 'bg-success' if a.typ=='wpłata' else 'bg-danger' }}">{{ a.typ
|
<span class="badge {{ 'bg-success' if a.typ=='wpłata' else 'bg-danger' }}">{{ a.typ
|
||||||
}}</span>
|
}}</span>
|
||||||
{% if a.ukryta %}<span class="badge bg-secondary ms-1">[ akcja ukryta ]</span>{% endif
|
|
||||||
%}
|
{% if a.ukryta %}
|
||||||
|
<span class="badge bg-secondary ms-1">ukryta</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="badge bg-secondary ms-1">widoczna</span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
{% if a.ukryta %}
|
||||||
|
<span class="badge bg-secondary ms-1">ukryta</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="badge bg-secondary ms-1">widoczna</span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="text-end">{{ '%.2f'|format(a.kwota) }} PLN</td>
|
<td class="text-end">{{ '%.2f'|format(a.kwota) }} PLN</td>
|
||||||
@@ -89,7 +103,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% if a.ukryta %}
|
{% if a.ukryta %}
|
||||||
<span class="badge bg-secondary">Ukryta</span>
|
|
||||||
<form class="d-inline" method="post"
|
<form class="d-inline" method="post"
|
||||||
action="{{ url_for('odkryj_wydatek', wydatek_id=a.id) }}">
|
action="{{ url_for('odkryj_wydatek', wydatek_id=a.id) }}">
|
||||||
<button class="btn btn-sm btn-outline-secondary">Odkryj</button>
|
<button class="btn btn-sm btn-outline-secondary">Odkryj</button>
|
||||||
|
Reference in New Issue
Block a user