admin: use accordeon on exercice page

This commit is contained in:
nemunaire 2018-12-05 07:31:49 +01:00
parent 07dcc1804b
commit c877da1161
2 changed files with 140 additions and 156 deletions

View file

@ -1051,31 +1051,6 @@ angular.module("FICApp")
$scope.exercices = Exercice.query();
$scope.fields = ["title", "urlid", "statement", "headline", "overview", "finished", "depend", "gain", "coefficient", "videoURI", "issue", "issuekind"];
$scope.showTags = false;
$scope.toggleTags = function(val) {
$scope.showTags = val ||!$scope.showTags;
}
$scope.showDownloads = false;
$scope.toggleDownloads = function(val) {
$scope.showDownloads = val ||!$scope.showDownloads;
}
$scope.showHints = false;
$scope.toggleHints = function(val) {
$scope.showHints = val || !$scope.showHints;
}
$scope.showFlags = false;
$scope.toggleFlags = function(val) {
$scope.showFlags = val || !$scope.showFlags;
}
$scope.showQuizz = false;
$scope.toggleQuizz = function(val) {
$scope.showQuizz = val || !$scope.showQuizz;
}
$scope.inSync = false;
$scope.syncExo = function() {
$scope.inSync = true;
@ -1123,7 +1098,6 @@ angular.module("FICApp")
$scope.tags = ExerciceTags.query({ exerciceId: $routeParams.exerciceId });
$scope.addTag = function() {
$scope.toggleTags(true);
$scope.tags.push("");
}
$scope.deleteTag = function() {