From b244f501b65c9166a56116b441385a0de5409b22 Mon Sep 17 00:00:00 2001 From: schinken Date: Wed, 30 Nov 2016 14:09:37 +0100 Subject: [PATCH] Introduce tabbed mode --- settings.js | 4 ++++ src/script/lib/controllers/index/index.html | 24 ++++++++++++++++----- src/script/lib/controllers/index/index.js | 7 ++++++ 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/settings.js b/settings.js index f60fa9f..6457b41 100644 --- a/settings.js +++ b/settings.js @@ -22,6 +22,10 @@ var settings = { transaction: 'cash-register.ogg' }, + index: { + tabbed: false + }, + ///////////////////////////////////////////////////////////////////////// // payments diff --git a/src/script/lib/controllers/index/index.html b/src/script/lib/controllers/index/index.html index d914c11..68871d5 100644 --- a/src/script/lib/controllers/index/index.html +++ b/src/script/lib/controllers/index/index.html @@ -3,9 +3,22 @@ {{alert.msg}} +
-

indexActiveUser

+ +
+ +
+

indexActiveUser

+
  • indexActiveUser
  • +
-
-
-
-

indexInactiveUser

+ +
+

indexInactiveUser

+
  • indexInactiveUser
  • +
+
\ No newline at end of file diff --git a/src/script/lib/controllers/index/index.js b/src/script/lib/controllers/index/index.js index b36de58..d767194 100644 --- a/src/script/lib/controllers/index/index.js +++ b/src/script/lib/controllers/index/index.js @@ -27,6 +27,13 @@ angular .controller('IndexController', function ($scope, Location, User, Message) { + if (settings.index && settings.index.tabbed) { + $scope.mode = { + tabbed: true, + currentTab: 'active' + }; + } + $scope.userClick = function (userId) { Location.gotoUser(userId); };