From caa68a7385096eb85e6997270a22a3c27f7ff916 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 16 Aug 2015 00:39:53 +0200 Subject: [PATCH] Rewrote account management. --- accountant/frontend/static/js/accounts.js | 91 +++++----- accountant/frontend/static/js/app.js | 18 +- .../frontend/static/templates/accounts.html | 159 ++++++++---------- 3 files changed, 129 insertions(+), 139 deletions(-) diff --git a/accountant/frontend/static/js/accounts.js b/accountant/frontend/static/js/accounts.js index 613a889..c8233fd 100644 --- a/accountant/frontend/static/js/accounts.js +++ b/accountant/frontend/static/js/accounts.js @@ -29,8 +29,20 @@ accountantApp .controller( "AccountController", [ - "$scope", "$rootScope", "$routeParams", "Accounts", - function($scope, $rootScope, $routeParams, Accounts) { + "$scope", "$rootScope", "$routeParams", "Accounts", "notificationService", + function($scope, $rootScope, $routeParams, Accounts, notificationService) { + + $scope.rowClass = function(account) { + if(!account || !account.authorized_overdraft || !account.current) { + return; + } + + if(account.current -
- - - - - - - - - - - +
+
+
+ +
+
- -
- - +
+
Nom du compteSolde courantSolde pointéDécouvert autoriséActions
- -
+ + + + + + + + + + - + + + + - + - - - - - - - + - - - - - - - + - - + - - - - - - - - -
Nom du compteSolde courantSolde pointéDécouvert autoriséActions
+ + {{ account.name }} + + + + {{ account.current }} + + - - -
- +
+ + {{ account.pointed }} + +
+ + {{ account.authorized_overdraft }} + +
{{ account.name }}{{ account.current }}{{ account.pointed }}{{ account.authorized_overdraft }} -
- +
+
+
+ - + - - - -
-
- - {{ account.current }}{{ account.pointed }} - - -
- - - -
-
+ + + +
+ + + + + +