Add ability to edit payees
This commit is contained in:
@ -36,11 +36,17 @@
|
||||
<select name="category_id" class="form-control">
|
||||
<option value="" {{if not $.Transaction.CategoryID.Valid}}selected{{end}}>-- none --</option>
|
||||
{{range .Categories}}
|
||||
<option
|
||||
value="{{.ID}}"
|
||||
{{if and $.Transaction.CategoryID.Valid (eq .ID $.Transaction.CategoryID.UUID)}}selected{{end}}
|
||||
>{{.Group}} : {{.Name}}</option>
|
||||
{{end}}
|
||||
<option value="{{.ID}}" {{if and $.Transaction.CategoryID.Valid (eq .ID $.Transaction.CategoryID.UUID)}}selected{{end}}>{{.Group}} : {{.Name}}</option>
|
||||
{{- end}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="payee_id">Payee</label>
|
||||
<select name="payee_id" class="form-control">
|
||||
<option value="" {{if not $.Transaction.PayeeID.Valid}}selected{{end}}>-- none --</option>
|
||||
{{range .Payees}}
|
||||
<option value="{{.ID}}" {{if and $.Transaction.PayeeID.Valid (eq .ID $.Transaction.PayeeID.UUID)}}selected{{end}}>{{.Name}}</option>
|
||||
{{- end}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
Reference in New Issue
Block a user