admin: New page to list tags
This commit is contained in:
parent
a6adc1ac8c
commit
80917ae436
5 changed files with 84 additions and 0 deletions
|
|
@ -41,6 +41,10 @@ angular.module("FICApp", ["ngRoute", "ngResource", "ngSanitize"])
|
|||
controller: "ExerciceController",
|
||||
templateUrl: "views/exercice-resolution.html"
|
||||
})
|
||||
.when("/tags", {
|
||||
controller: "TagsListController",
|
||||
templateUrl: "views/tags.html"
|
||||
})
|
||||
.when("/teams", {
|
||||
controller: "TeamsListController",
|
||||
templateUrl: "views/team-list.html"
|
||||
|
|
@ -1478,6 +1482,16 @@ angular.module("FICApp")
|
|||
}
|
||||
})
|
||||
|
||||
.controller("TagsListController", function($scope, $http) {
|
||||
$scope.tags = [];
|
||||
$http({
|
||||
url: "api/tags",
|
||||
method: "GET"
|
||||
}).then(function(response) {
|
||||
$scope.tags = response.data
|
||||
});
|
||||
})
|
||||
|
||||
.controller("AllExercicesListController", function($scope, Exercice, Theme, $routeParams, $location, $rootScope, $http, $filter) {
|
||||
$http({
|
||||
url: "api/themes.json",
|
||||
|
|
|
|||
Reference in a new issue