fixed transaction submission

This commit is contained in:
2016-04-11 15:01:28 +02:00
parent 6aaee428f0
commit 46e718bb85
2 changed files with 7 additions and 12 deletions
@@ -1,10 +1,10 @@
<div>
<div>
<div><select ng-model='account' ng-change='refreshAccount()' ng-options="account.name for account in accounts track by account.id"></select></div>
<div><select ng-model='account' ng-change='refreshList()' ng-options="account.name for account in accounts track by account.id"></select></div>
<div>
<form role="form" ng-submit="postTransaction()">
<div>
Betrag: <input ng-model='transaction.amount' type='number' />
Betrag: <input ng-model='transaction.amount' type='number' step='0.01' />
</div>
<div>
Kategorie: <select ng-model='transaction.category' size='1'
@@ -36,11 +36,11 @@
<td>{{transaction.description}}</td>
</tr>
</table>
<div>
<pre style="font-size: 75%; color: darkgray;">{{accounts | json}}</pre>
</div>
<!-- div>
<pre style="font-size: 75%; color: darkgray;">{{account | json}}</pre>
</div -->
</div>
</div>
</div>