From 0c1ecc6670d247aab04aec6f3502b58dff0580ec Mon Sep 17 00:00:00 2001 From: Tilman Liero Date: Fri, 15 Apr 2016 16:09:27 +0200 Subject: [PATCH] radio buttons --- src/main/resources/static/js/controllers.js | 14 ++++++++++++++ .../static/partials/transaction-list.html | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/js/controllers.js b/src/main/resources/static/js/controllers.js index f676512..f515795 100644 --- a/src/main/resources/static/js/controllers.js +++ b/src/main/resources/static/js/controllers.js @@ -33,6 +33,16 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$location' } }); + + // HIER GEHT'S WEITER + // URL des aktuell selektierten Account ermitteln, dann /accounts/id/users abrufen, Liste für Rediobuttons bereitstellen +// var users = $resource('/categories/search/listForAccount', { accountId: $scope.accounts[0].id }).get(); +// categories.$promise.then(function(data) { +// $scope.categories = categories._embedded.categories; +// +// $scope.refreshList(); +// }); + } $scope.initList = function() { @@ -49,6 +59,10 @@ transactionControllers.controller('TransactionListCtrl', [ '$scope', '$location' var categories = $resource('/categories/search/listForAccount', { accountId: $scope.accounts[0].id }).get(); categories.$promise.then(function(data) { $scope.categories = categories._embedded.categories; + + //$scope.categories.push({id: -1, name: '────────────────', position: 9999, disabled: true}); + $scope.categories.push({id: -1, name: 'private Entnahme', position: 10000, _links: { self: {href: 'withdrawal'}}}); + $scope.refreshList(); }); }); diff --git a/src/main/resources/static/partials/transaction-list.html b/src/main/resources/static/partials/transaction-list.html index ace1ef4..cf5c7b1 100644 --- a/src/main/resources/static/partials/transaction-list.html +++ b/src/main/resources/static/partials/transaction-list.html @@ -6,7 +6,7 @@
Betrag:
- The value is not a valid value! + The value is not valid!
Kategorie:
+
+ Auslage: + + + + +