Add PreviousParticipantsSelection

This commit is contained in:
Andrea Fazzi 2022-02-03 16:20:39 +01:00
parent c9ffc3f898
commit d3f040da33
3 changed files with 16 additions and 2 deletions

View file

@ -57,6 +57,8 @@ type School struct {
ContestDirectorLastname string ContestDirectorLastname string
ContestDirectorFirstname string ContestDirectorFirstname string
PreviousParticipantsSelection uint
UserID uint UserID uint
RegionID RegionID `schema:"region_id"` RegionID RegionID `schema:"region_id"`

View file

@ -109,6 +109,13 @@
</div> </div>
</div> </div>
<div class="form-row">
<div class="col">
{{$options := ` { name: "PreviousParticipantsSelection",id: "school_previous_participants_selection",label: "Indicare il numero complessivo degli studenti nell'ambito del quale sono stati selezionati il candidato JUNIOR e il candidato SENIOR dell'Istituto",placeholder: "Indicare il numero complessivo degli studenti",type: "number",required: "true"} `}}
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "PreviousParticipantsSelection") "update" $update}}
</div>
</div>
{{if ne (env "OEF_REGRESSION_TEST") "1"}} {{if ne (env "OEF_REGRESSION_TEST") "1"}}
{{if .Claims|isSubscriber}} {{if .Claims|isSubscriber}}
{{$captcha := genCaptcha}} {{$captcha := genCaptcha}}

View file

@ -61,6 +61,11 @@
<dt class="col-sm-3">Referente di sede</dt><dd class="col-sm-9">{{.Data.SchoolContactPersonLastname}} {{.Data.SchoolContactPersonFirstname}} (<a href="mailto:{{.Data.SchoolContactPersonEmail}}">{{.Data.SchoolContactPersonEmail}}</a>, {{.Data.SchoolContactPersonTelephoneNumber}})</dd> <dt class="col-sm-3">Referente di sede</dt><dd class="col-sm-9">{{.Data.SchoolContactPersonLastname}} {{.Data.SchoolContactPersonFirstname}} (<a href="mailto:{{.Data.SchoolContactPersonEmail}}">{{.Data.SchoolContactPersonEmail}}</a>, {{.Data.SchoolContactPersonTelephoneNumber}})</dd>
<dt class="col-sm-3">Responsabile di gara</dt><dd class="col-sm-9">{{.Data.ContestDirectorLastname}} {{.Data.ContestDirectorFirstname}}</dd> <dt class="col-sm-3">Responsabile di gara</dt><dd class="col-sm-9">{{.Data.ContestDirectorLastname}} {{.Data.ContestDirectorFirstname}}</dd>
<dt class="col-sm-3">
Numero di studenti complessivo dal quale sono stati
selezionati i candidati per le prove regionali
</dt><dd class="col-sm-9">{{.Data.PreviousParticipantsSelection}}</dd>
{{if $isAdmin}} {{if $isAdmin}}
{{if $creatorUser:=.Data.CreatedBy}} {{if $creatorUser:=.Data.CreatedBy}}
<dt class="col-sm-3">Creato da</dt> <dt class="col-sm-3">Creato da</dt>