Transaction table – výpis transakcí
Částky a zůstatky jsou hotové texty z aplikace. Řádky nesou data-transaction-kind="topup|charge". Na mobilu se řádek skládá pod sebe.
Zkrácený výpis v kartě
-
Historie transakcí
Dobití kreditu i platby, které jsme z něj strhli.PopisDatumČástkaZůstatekPlatba: Realitní hlídač Expres1. 9. 2026− 69 Kč420 KčPlatba: Topování inzerátu28. 8. 2026− 290 Kč489 KčPlatba: Inzerát na 60 dní18. 8. 2026− 450 Kč779 KčDobití: Dobití kreditu12. 8. 2026+ 1 000 Kč1 229 Kč -
{% embed "@Components/user-card/user-card.twig" with { props: { title: "Historie transakcí", subtitle: "Dobití kreditu i platby, které jsme z něj strhli.", icon: { src: "svg/user-section/clock.svg" }, stackedMobile: true, summary: { text: "Poslední 4 z 20", link: { title: "Zobrazit vše", url: "#" } } } } %} {% block body %} {% include "@Components/transaction-table/transaction-table.twig" with { props: { caption: "Historie transakcí", columns: { description: "Popis", date: "Datum", amount: "Částka", balance: "Zůstatek" }, rows: [ { kind: "charge", kindLabel: "Platba", title: "Realitní hlídač Expres", meta: "Měsíční platba · září 2026", date: "1. 9. 2026", amount: "− 69 Kč", balance: "420 Kč" }, { kind: "charge", kindLabel: "Platba", title: "Topování inzerátu", meta: "Prodej bytu 2+kk 50 m², Lišov", date: "28. 8. 2026", amount: "− 290 Kč", balance: "489 Kč" }, { kind: "charge", kindLabel: "Platba", title: "Inzerát na 60 dní", meta: "Pronájem bytu 1+kk 32 m², Budějovice", date: "18. 8. 2026", amount: "− 450 Kč", balance: "779 Kč" }, { kind: "topup", kindLabel: "Dobití", title: "Dobití kreditu", meta: "Platební karta · 4242", date: "12. 8. 2026", amount: "+ 1 000 Kč", balance: "1 229 Kč" }, ] } } %} {% endblock %} {% endembed %} -
<section class="user-card user-card--stacked-mobile"> <header class="user-card__header"> <span class="user-card__icon" aria-hidden="true"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7"/><path d="M10 6v4.2l3 1.8"/></svg> </span> </span> <div class="user-card__heading"> <h2 class="user-card__title">Historie transakcí</h2> <div class="user-card__subtitle">Dobití kreditu i platby, které jsme z něj strhli.</div> </div> <div class="user-card__aside"></div> </header> <div class="user-card__panel"> <div class="user-card__body"> <div class="transaction-table" role="table" aria-label="Historie transakcí"> <div class="transaction-table__head" role="row"> <div class="transaction-table__cell transaction-table__cell--description" role="columnheader">Popis</div> <div class="transaction-table__cell transaction-table__cell--date" role="columnheader">Datum</div> <div class="transaction-table__cell transaction-table__cell--amount" role="columnheader">Částka</div> <div class="transaction-table__cell transaction-table__cell--balance" role="columnheader">Zůstatek</div> </div> <div class="transaction-table__row" role="row" data-transaction-kind="charge"> <div class="transaction-table__cell transaction-table__cell--description" role="cell"> <span class="transaction-table__icon"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 4.5v11M5.5 11L10 15.5 14.5 11"/></svg> </span> <span class="visually-hidden">Platba:</span> </span> <span class="transaction-table__text"> <span class="transaction-table__title">Realitní hlídač Expres</span> <span class="transaction-table__meta">Měsíční platba · září 2026</span> </span> </div> <div class="transaction-table__cell transaction-table__cell--date" role="cell">1. 9. 2026</div> <div class="transaction-table__cell transaction-table__cell--amount" role="cell">− 69 Kč</div> <div class="transaction-table__cell transaction-table__cell--balance" role="cell"> <span class="transaction-table__mobile-label" aria-hidden="true">Zůstatek </span>420 Kč </div> </div> <div class="transaction-table__row" role="row" data-transaction-kind="charge"> <div class="transaction-table__cell transaction-table__cell--description" role="cell"> <span class="transaction-table__icon"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 4.5v11M5.5 11L10 15.5 14.5 11"/></svg> </span> <span class="visually-hidden">Platba:</span> </span> <span class="transaction-table__text"> <span class="transaction-table__title">Topování inzerátu</span> <span class="transaction-table__meta">Prodej bytu 2+kk 50 m², Lišov</span> </span> </div> <div class="transaction-table__cell transaction-table__cell--date" role="cell">28. 8. 2026</div> <div class="transaction-table__cell transaction-table__cell--amount" role="cell">− 290 Kč</div> <div class="transaction-table__cell transaction-table__cell--balance" role="cell"> <span class="transaction-table__mobile-label" aria-hidden="true">Zůstatek </span>489 Kč </div> </div> <div class="transaction-table__row" role="row" data-transaction-kind="charge"> <div class="transaction-table__cell transaction-table__cell--description" role="cell"> <span class="transaction-table__icon"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 4.5v11M5.5 11L10 15.5 14.5 11"/></svg> </span> <span class="visually-hidden">Platba:</span> </span> <span class="transaction-table__text"> <span class="transaction-table__title">Inzerát na 60 dní</span> <span class="transaction-table__meta">Pronájem bytu 1+kk 32 m², Budějovice</span> </span> </div> <div class="transaction-table__cell transaction-table__cell--date" role="cell">18. 8. 2026</div> <div class="transaction-table__cell transaction-table__cell--amount" role="cell">− 450 Kč</div> <div class="transaction-table__cell transaction-table__cell--balance" role="cell"> <span class="transaction-table__mobile-label" aria-hidden="true">Zůstatek </span>779 Kč </div> </div> <div class="transaction-table__row transaction-table__row--topup" role="row" data-transaction-kind="topup"> <div class="transaction-table__cell transaction-table__cell--description" role="cell"> <span class="transaction-table__icon"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 15.5V4.5M5.5 9L10 4.5 14.5 9"/></svg> </span> <span class="visually-hidden">Dobití:</span> </span> <span class="transaction-table__text"> <span class="transaction-table__title">Dobití kreditu</span> <span class="transaction-table__meta">Platební karta · 4242</span> </span> </div> <div class="transaction-table__cell transaction-table__cell--date" role="cell">12. 8. 2026</div> <div class="transaction-table__cell transaction-table__cell--amount" role="cell">+ 1 000 Kč</div> <div class="transaction-table__cell transaction-table__cell--balance" role="cell"> <span class="transaction-table__mobile-label" aria-hidden="true">Zůstatek </span>1 229 Kč </div> </div> </div> </div> <div class="user-card__footer user-card__footer--summary"> <span class="user-card__summary-text">Poslední 4 z 20</span> <a class="user-card__summary-link" href="#"> <span>Zobrazit vše</span> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10h11M11 6l4 4-4 4"/></svg> </span> </a> </div> </div> </section>
Prázdný stav
-
Historie transakcí
V tomto filtru nemáte žádné transakce.
-
{# Prázdný stav: bez řádků se vykreslí jen text, hlavička sloupců ne #} {% embed "@Components/user-card/user-card.twig" with { props: { title: "Historie transakcí", icon: { src: "svg/user-section/clock.svg" } } } %} {% block body %} {% include "@Components/transaction-table/transaction-table.twig" with { props: { caption: "Historie transakcí", columns: { description: "Popis", date: "Datum", amount: "Částka", balance: "Zůstatek" }, rows: [], emptyText: "V tomto filtru nemáte žádné transakce." } } %} {% endblock %} {% endembed %} -
<section class="user-card"> <header class="user-card__header"> <span class="user-card__icon" aria-hidden="true"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="10" cy="10" r="7"/><path d="M10 6v4.2l3 1.8"/></svg> </span> </span> <div class="user-card__heading"> <h2 class="user-card__title">Historie transakcí</h2> </div> <div class="user-card__aside"></div> </header> <div class="user-card__panel"> <div class="user-card__body"> <div class="transaction-table transaction-table--empty"> <p class="transaction-table__empty">V tomto filtru nemáte žádné transakce.</p> </div> </div> </div> </section>
Schema
{
"props": {
"caption": {
"type": "string",
"description": "Název tabulky pro čtečky (aria-label), např. „Historie transakcí“"
},
"columns": {
"type": "object",
"description": "{ description, date, amount, balance } – popisky sloupců; balance se na mobilu vypíše malými písmeny před zůstatkem"
},
"rows": {
"type": "array of objects",
"description": "{ kind: topup | charge, kindLabel, title, meta, date, amount, balance }. amount a balance jsou hotové texty včetně znaménka a měny („+ 1 000 Kč“, „− 69 Kč“). kindLabel („Dobití“ / „Platba“) je text pro čtečky – směr není sdělen jen barvou. Řádek nese data-transaction-kind. Texty se vypisují bez escapování – escapuje aplikace."
},
"emptyText": {
"type": "string",
"description": "Text prázdného stavu, když rows chybí nebo je prázdné (hlavička sloupců se pak nevykreslí)"
},
"extraClass": {
"type": "string",
"description": "Extra CSS class"
}
}
}