backend/views/transactions/transactions.pug

24 lines
517 B
Plaintext
Raw Normal View History

2023-12-14 11:15:56 +01:00
extends ../layout/base.pug
block headline
h1 Transactions
block content
form(action="/tansactions",method="POST")
table
thead
th ID
th Date
th Description
th Account
th Amount
tbody
each transaction in transactions
tr
td=transaction.TransactionID
td=transaction.Date
td=transaction.Description
td=transaction.Account.Name
td(class=`${transaction.Type} amount` )=transaction.Amount