admin: New page to list tags

This commit is contained in:
nemunaire 2022-05-24 21:25:27 +02:00
commit 80917ae436
5 changed files with 84 additions and 0 deletions

View file

@ -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",