41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
|
|
details
|
|
summary Create new transaction
|
|
|
|
form(action="/transactions",method="POST")
|
|
div.form-group
|
|
.text Description
|
|
.input
|
|
textarea(name="description", cols="30", rows="5") Test
|
|
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 Amount
|
|
.input
|
|
input(type="text",name="amount",required)
|
|
div.form-group
|
|
.text Account
|
|
.input
|
|
select(name="account")
|
|
each account in accounts
|
|
option(value=account.AccountID)=account.Name
|
|
div.form-group
|
|
.text Category
|
|
.input
|
|
select(name="category")
|
|
each category in categories
|
|
option(value=category.CategoryID,title=category.Description)=category.Name
|
|
button(type="submit") Add Transaction |