backend/views/transactions/modifyTransaction.pug

42 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-12-21 10:05:39 +01:00
extends ./transactions.pug
block content
2024-01-22 08:34:38 +01:00
form(action=`/transactions/modifyTransaction/${transaction.TransactionID}`,method="POST")
2023-12-21 10:05:39 +01:00
div.form-group
.text Description
.input
textarea(name="description", cols="30", rows="5")
div.form-group.half
.text Date
.input
input(type="date",name="date")
div.form-group.half
.text Time
.input
input(type="time",name="time")
div.form-group.half
.text Type
.input
select(name="type")
option(value="income") Income
option(value="expense",select) Expense
option(value="transfer") Transfer
div.form-group.half
.text Account
.input
select(name="account")
each account in accounts
option(value=account.AccountID)=account.Name
div.form-group.half
.text Amount
2024-01-22 08:34:38 +01:00
if transaction.locked
input(type="number",min="0",step="0.01",name="amount",disabled)
else
.input
input(type="number",min="0",step="0.01",name="amount",required)
2023-12-21 10:05:39 +01:00
div.form-group.half
.text Category
.input
select(name="category")
each category in categories
option(value=category.CategoryID,title=category.Description)=category.Name
button(type="submit") Modify Transaction