diff --git a/admin/static/js/app.js b/admin/static/js/app.js index b4a4c4d7..fb60bfc9 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -273,7 +273,7 @@ angular.module("FICApp") }) }) .factory("ThemedExercice", function($resource) { - return $resource("/api/themes/:themeId/exercices/:exerciceId", { exerciceId: '@id' }, { + return $resource("/api/themes/:themeId/exercices/:exerciceId", { themeId: '@id', exerciceId: '@idExercice' }, { update: {method: 'PUT'} }) }) diff --git a/admin/static/views/theme.html b/admin/static/views/theme.html index 86a00357..04ad8f74 100644 --- a/admin/static/views/theme.html +++ b/admin/static/views/theme.html @@ -16,7 +16,7 @@ -
+

Exercices ({{ exercices.length }})