admin: Better identify tries on exercice page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2025-03-30 15:20:11 +02:00
parent 38e3a4efdf
commit f6713c768b
6 changed files with 177 additions and 3 deletions

View file

@ -320,6 +320,9 @@ angular.module("FICApp")
.factory("ExerciceHistory", function ($resource) {
return $resource("api/exercices/:exerciceId/history.json", { exerciceId: '@id' })
})
.factory("ExerciceTries", function ($resource) {
return $resource("api/exercices/:exerciceId/tries/:tryId", { exerciceId: '@idExercice', tryId: '@id' })
})
.factory("ExercicesStats", function ($resource) {
return $resource("api/exercices_stats.json", { themeId: '@id' })
})
@ -2117,6 +2120,10 @@ angular.module("FICApp")
}
})
.controller("SearchTryController", function ($scope, ExerciceTries) {
$scope.tr = ExerciceTries.get({ exerciceId: $scope.exercice.id, tryId: $scope.row.secondary });
})
.controller("SubmissionsStatsController", function ($scope, $http, $interval) {
var refresh = function () {
$http({