admin: New settings to define how to unlock standalone exercices
This commit is contained in:
parent
516ebf9c5a
commit
a1ce2df131
@ -132,6 +132,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body pb-2 border-top">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group row">
|
||||
<label for="unlockedStandaloneExercices" class="col-sm-auto col-form-label col-form-label-sm" ng-class="{'text-primary font-weight-bold': config.unlockedStandaloneExercices != dist_config.unlockedStandaloneExercices}">Exercices indépendants débloqués</label>
|
||||
<div class="col-sm">
|
||||
<input type="number" class="form-control form-control-sm" id="unlockedStandaloneExercices" ng-model="config.unlockedStandaloneExercices" ng-class="{'border-primary': config.unlockedStandaloneExercices != dist_config.unlockedStandaloneExercices}" min="0">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="form-group row">
|
||||
<label for="unlockedStandaloneExercicesByValidation" class="col-sm-auto col-form-label col-form-label-sm" ng-class="{'text-primary font-weight-bold': config.unlockedStandaloneExercicesByValidation != dist_config.unlockedStandaloneExercicesByValidation}">Exercices supplémentaires par validation</label>
|
||||
<div class="col-sm">
|
||||
<input type="number" class="form-control form-control-sm" id="unlockedStandaloneExercicesByValidation" ng-model="config.unlockedStandaloneExercicesByValidation" ng-class="{'border-primary': config.unlockedStandaloneExercicesByValidation != dist_config.unlockedStandaloneExercicesByValidation}" min="0" step="0.01">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body pl-0 pt-3 border-top" style="columns: 2;">
|
||||
<div class="form-check">
|
||||
<label class="custom-control custom-checkbox">
|
||||
|
@ -71,6 +71,10 @@ type Settings struct {
|
||||
UnlockedChallengeDepth int `json:"unlockedChallengeDepth"`
|
||||
// UnlockedChallengeUpTo unlock challenge up to a given level of deps.
|
||||
UnlockedChallengeUpTo int `json:"unlockedChallengeUpTo"`
|
||||
// UnlockedStandaloneExercices unlock this number of standalone exercice.
|
||||
UnlockedStandaloneExercices int `json:"unlockedStandaloneExercices,omitempty"`
|
||||
// UnlockedStandaloneExercicesByValidation unlock this number of standalone exercice for each exercice validated.
|
||||
UnlockedStandaloneExercicesByValidation float64 `json:"unlockedStandaloneExercicesByValidation,omitempty"`
|
||||
// SubmissionUniqueness don't count multiple times identical tries.
|
||||
SubmissionUniqueness bool `json:"submissionUniqueness,omitempty"`
|
||||
// CountOnlyNotGoodTries don't count as a try when one good response is given at least.
|
||||
|
Loading…
x
Reference in New Issue
Block a user