settings: add title and authors
This commit is contained in:
parent
8d6397d1ac
commit
8d14339dc8
6 changed files with 23 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ func getSettings(_ httprouter.Params, body []byte) (interface{}, error) {
|
|||
if settings.ExistsSettings(path.Join(TeamsDir, settings.SettingsFile)) {
|
||||
return settings.ReadSettings(path.Join(TeamsDir, settings.SettingsFile))
|
||||
} else {
|
||||
return settings.FICSettings{time.Unix(0,0), time.Unix(0,0), time.Unix(0,0), fic.FirstBlood, fic.SubmissionCostBase, false, false, false, true, true}, nil
|
||||
return settings.FICSettings{"Challenge FIC", "Laboratoire SRS, ÉPITA", time.Unix(0,0), time.Unix(0,0), time.Unix(0,0), fic.FirstBlood, fic.SubmissionCostBase, false, false, false, true, true}, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,20 @@
|
|||
|
||||
<input type="hidden" class="form-control" id="lastRegeneration" ng-model="config.generation">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="challengeName" class="col-sm-2 control-label">Nom du challenge</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="challengeName" ng-model="config.title">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="challengeAuthors" class="col-sm-2 control-label">Auteurs du challenge</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="challengeAuthors" ng-model="config.authors">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="startTime" class="col-sm-2 control-label">Début du challenge</label>
|
||||
<div class="col-sm-8">
|
||||
|
|
|
|||
Reference in a new issue