- Campuses -> Courses -> Projects (Addition)

-* waiting for merge to get API from server
This commit is contained in:
Matan Bar Yosef 2015-06-24 21:35:55 +03:00
parent 0cce80ed98
commit e2bd575ca7
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,17 @@
angular.module('SeHub')
.controller('campusesController', ['$scope', '$cookies', '$cookieStore', '$window', '$location', '$mdToast', '$mdDialog', 'apiService', '$rootScope', function($scope, $cookies, $cookieStore, $window, $location, $mdToast, $mdDialog, apiService, $rootScope) {
$scope.campuses = ['Bezalel', 'Ben Gurion', 'Sami Shamoon', 'Afeka', 'Ivrit', 'Kaka', 'Opium'];
console.log($scope.campuses);
// apiService.getCampusesByUser(token).success(function(data) // Get all the campuses
// {
// $scope.campuses = data;
// }).error(function() {
// // TODO
// });
}]);

View file

@ -0,0 +1,16 @@
<div class = "myCampuses">
<md-content layout-padding layout-margin>
<h1 layout-margin style="margin-left:15px"><i class="fa fa-university"></i> My Campuses</h1>
</md-content>
<md-card flex = "99" class="cardAllCampuses">
<div flex class = "allCampusesShow" layout = "column">
<div flex layout = "row" ng-repeat = "campus in campuses" value = "{{campus}}" layout-padding>
<a href="http://localhost:8080/home#/myClasses" style="color:black; text-decoration:none;">
<md-card layout-padding flex class = "campusCard">
{{campus}}
</md-card>
</a>
</div>
</div>
</md-card>
</div>