admin: add a button to edit the raw flag value instead of the checksum

This commit is contained in:
nemunaire 2019-01-21 13:35:09 +01:00
parent b205409679
commit eee2cd6a2f
4 changed files with 46 additions and 18 deletions

View file

@ -1341,6 +1341,10 @@ angular.module("FICApp")
.controller("ExerciceFlagsController", function($scope, ExerciceFlag, $routeParams, $rootScope, $http) {
$scope.flags = ExerciceFlag.query({ exerciceId: $routeParams.exerciceId });
$scope.changeValue = function(flag) {
flag.value = undefined;
flag.show_raw = true;
}
$scope.addFlag = function() {
$scope.flags.push(new ExerciceFlag());
}