diff --git a/admin/static/js/app.js b/admin/static/js/app.js index ee3202ae..0ad39be3 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -111,12 +111,15 @@ angular.module("FICApp") $location.url("/themes/" + id); }; }) - .controller("ThemeController", function($scope, Theme, $routeParams) { + .controller("ThemeController", function($scope, Theme, $routeParams, $location) { $scope.theme = Theme.get({ themeId: $routeParams.themeId }); - $scope.fields = ["name"]; + $scope.fields = ["name", "authors"]; $scope.saveTheme = function() { - this.theme.$save({themeId: this.theme.themeId}); + this.theme.$update(); + } + $scope.deleteTheme = function() { + this.theme.$remove(function() { $location.url("/themes/");}); } }) diff --git a/admin/static/views/team-list.html b/admin/static/views/team-list.html index 64526d21..bc261e0c 100644 --- a/admin/static/views/team-list.html +++ b/admin/static/views/team-list.html @@ -1,3 +1,5 @@ +
- {{ team[field] }} + {{ exercice[field] }} |