diff --git a/frontend/app/scripts/controllers/userSpace.js b/frontend/app/scripts/controllers/userSpace.js index 4b3d101..2eebb16 100755 --- a/frontend/app/scripts/controllers/userSpace.js +++ b/frontend/app/scripts/controllers/userSpace.js @@ -5,12 +5,61 @@ .controller('UserSpaceCtrl', ['$scope', '$state', function ($scope, $state) { + $scope.toggleAccordion = toggleAccordion; + $scope.isOpenAccordion = isOpenAccordion; + $scope.logout = logout; + $scope.exportBooklet = exportBooklet; + init(); // --------------------------------------------------------------- function init() { - + + $scope.periods = [ + { + number : 2, + company: { + icon : 'add', + comment: '' + }, + university: { + icon : 'add', + comment: '' + } + },{ + number : 1, + company: { + icon : 'add', + comment: '' + }, + university: { + icon : 'add', + comment: '' + } + } + ]; + } + + function toggleAccordion(value, isCompany, index) { + var newValue = (value === 'add') ? 'remove': 'add'; + if(isCompany === 'true') { + $scope.periods[index].company.icon = newValue; + } else { + $scope.periods[index].university.icon = newValue; + } + } + + function isOpenAccordion(value) { + return (value === 'remove'); + } + + function logout() { + $state.go('login'); + } + + function exportBooklet() { + console.log('export booklet .. TODO '); } // --------------------------------------------------------------- diff --git a/frontend/app/views/userSpace.html b/frontend/app/views/userSpace.html index 07c68bd..099911a 100755 --- a/frontend/app/views/userSpace.html +++ b/frontend/app/views/userSpace.html @@ -4,60 +4,82 @@
+- The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest - Greene's musical language: feel it. It's a simple request, as well... -
-- The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest - Greene's musical language: feel it. It's a simple request, as well... -
-- The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest - Greene's musical language: feel it. It's a simple request, as well... -
-- The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest - Greene's musical language: feel it. It's a simple request, as well... -
-- The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest - Greene's musical language: feel it. It's a simple request, as well... -
-- The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest - Greene's musical language: feel it. It's a simple request, as well... -
+ + +Lorem ipsum dolor sit amet, ne quod novum mei. Sea omnium invenire mediocrem at, in lobortis conclusionemque + nam. Ne deleniti appetere reprimique pro, inani labitur disputationi te sed. At vix sale omnesque, id pro + labitur reformidans accommodare, cum labores honestatis eu. Nec quem lucilius in, eam praesent reformidans + no. Sed laudem aliquam ne.
Lorem ipsum dolor sit amet, ne quod novum mei. Sea omnium invenire mediocrem at, in lobortis conclusionemque + nam. Ne deleniti appetere reprimique pro, inani labitur disputationi te sed. At vix sale omnesque, id pro + labitur reformidans accommodare, cum labores honestatis eu. Nec quem lucilius in, eam praesent reformidans + no. Sed laudem aliquam ne.
+ +