40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
|
extends ./transactions.pug
|
||
|
|
||
|
block content
|
||
|
form(action="/transactions/addTransfer",method="POST")
|
||
|
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 from Account
|
||
|
.input
|
||
|
select(name="fromAccount")
|
||
|
each account in accounts
|
||
|
option(value=account.AccountID)=account.Name
|
||
|
div.form-group.half
|
||
|
.text to Account
|
||
|
.input
|
||
|
select(name="toAccount")
|
||
|
each account in accounts
|
||
|
option(value=account.AccountID)=account.Name
|
||
|
div.form-group.half
|
||
|
.text Amount
|
||
|
.input
|
||
|
input(type="number",min="0",step="0.01",name="amount",required)
|
||
|
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") Add Transaction
|