diff --git a/admin/static/js/app.js b/admin/static/js/app.js index 9730d887..df1f47f8 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -946,7 +946,14 @@ angular.module("FICApp") } }) - .controller("AllExercicesListController", function($scope, Exercice, $routeParams, $location, $rootScope, $http, $filter) { + .controller("AllExercicesListController", function($scope, Exercice, Theme, $routeParams, $location, $rootScope, $http, $filter) { + $http({ + url: "/api/themes.json", + method: "GET" + }).then(function(response) { + $scope.themes = response.data + }); + $scope.exercices = Exercice.query(); $scope.exercice = {}; // Array used to save fields to updates in selected exercices $scope.fields = ["title", "overview"]; diff --git a/admin/static/views/exercice-list.html b/admin/static/views/exercice-list.html index 9c2054eb..53f26d70 100644 --- a/admin/static/views/exercice-list.html +++ b/admin/static/views/exercice-list.html @@ -30,6 +30,9 @@