Rename OEF in OIEF and change date; add new participant and school fields

This commit is contained in:
Andrea Fazzi 2022-02-01 18:32:03 +01:00
parent ec6a606d7f
commit 209ab40e42
17 changed files with 49 additions and 21 deletions

View file

@ -1,4 +1,4 @@
url: "https://gara.olimpiadi-economiaefinanza.it" url: "https://piattaforma.oief.it"
port: "80" port: "80"
domain: "olimpiadi-economiaefinanza.it" domain: "olimpiadi-economiaefinanza.it"
log_level: 2 log_level: 2

View file

@ -25,6 +25,6 @@ smtp:
port: 25 port: 25
username: "" username: ""
password: "" password: ""
from: "no-reply@olimpiadi-economiaefinanza.it" from: "no-reply@oief.it"
bcc: "bcc@fake.org" bcc: "bcc@fake.org"
subject: "[OEF2020] - Credenziali di accesso della scuola" subject: "[OEF2020] - Credenziali di accesso della scuola"

View file

@ -29,5 +29,5 @@ smtp:
port: 1025 port: 1025
username: "" username: ""
password: "" password: ""
from: "no-reply@olimpiadi-economiaefinanza.it" from: "no-reply@oief.it"
bcc: "bcc@fake.org" bcc: "bcc@fake.org"

View file

@ -25,6 +25,6 @@ smtp:
port: 1025 port: 1025
username: "" username: ""
password: "" password: ""
from: "no-reply@olimpiadi-economiaefinanza.it" from: "no-reply@oief.it"
bcc: "bcc@fake.org" bcc: "bcc@fake.org"
subject: "[OEF2020] - Credenziali di accesso della scuola" subject: "[OEF2020] - Credenziali di accesso della scuola"

View file

@ -24,6 +24,6 @@ smtp:
port: 1025 port: 1025
username: "" username: ""
password: "" password: ""
from: "no-reply@olimpiadi-economiaefinanza.it" from: "no-reply@oief.it"
bcc: "bcc@fake.org" bcc: "bcc@fake.org"
subject: "[OEF2020] - Credenziali di accesso della scuola" subject: "[OEF2020] - Credenziali di accesso della scuola"

View file

@ -29,5 +29,5 @@ smtp:
port: 1025 port: 1025
username: "" username: ""
password: "" password: ""
from: "no-reply@olimpiadi-economiaefinanza.it" from: "no-reply@oief.it"
bcc: "bcc@fake.org" bcc: "bcc@fake.org"

View file

@ -24,7 +24,7 @@ smtp:
port: 1025 port: 1025
username: "" username: ""
password: "" password: ""
from: "no-reply@olimpiadi-economiaefinanza.it" from: "no-reply@oief.it"
bcc: "bcc@fake.org" bcc: "bcc@fake.org"
subject: "[OEF2020] - Credenziali di accesso della scuola" subject: "[OEF2020] - Credenziali di accesso della scuola"

View file

@ -29,6 +29,9 @@ type Participant struct {
FiscalCode string FiscalCode string
Year int
StudyField string
CategoryID uint `schema:"category_id"` CategoryID uint `schema:"category_id"`
SchoolID uint `schema:"school_id"` SchoolID uint `schema:"school_id"`

View file

@ -28,7 +28,7 @@ password: {{.Password}}
Per accedere alla pagina di login occorrerà seguire questo link Per accedere alla pagina di login occorrerà seguire questo link
https://piattaforma.olimpiadi-economiaefinanza.it/ https://piattaforma.oief.it/
ed inserire le credenziali riportate sopra (si consiglia di effettuare un copia/incolla). ed inserire le credenziali riportate sopra (si consiglia di effettuare un copia/incolla).
@ -49,8 +49,10 @@ type School struct {
Code string Code string
EmailSentDate time.Time EmailSentDate time.Time
SchoolContactPersonLastname string SchoolContactPersonLastname string
SchoolContactPersonFirstname string SchoolContactPersonFirstname string
SchoolContactPersonEmail string
SchoolContactPersonTelephoneNumber string
ContestDirectorLastname string ContestDirectorLastname string
ContestDirectorFirstname string ContestDirectorFirstname string

View file

@ -24,7 +24,7 @@
{{- $homeURL := "" -}} {{- $homeURL := "" -}}
<a class="navbar-brand" href="{{$homeURL}}"> <a class="navbar-brand" href="{{$homeURL}}">
<span class="fa fa-landmark"></span> <span class="fa fa-landmark"></span>
OEF 2020 OIEF 2022
</a> </a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>

View file

@ -9,7 +9,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
<link rel="stylesheet" href="/styles.css" /> <link rel="stylesheet" href="/styles.css" />
<title>OEF 2021</title> <title>OIEF 2022</title>
<style> <style>
html { html {
position: relative; position: relative;

View file

@ -2,7 +2,7 @@
<div class="container"> <div class="container">
<h1 class="text-center karmen-title"> <h1 class="text-center karmen-title">
<span class="fa fa-landmark"></span> <span class="fa fa-landmark"></span>
OEF 2021 OIEF 2022
<small>La piattaforma di gara</small> <small>La piattaforma di gara</small>
</h1> </h1>
<div class="login"> <div class="login">

View file

@ -2,7 +2,7 @@
<div class="container"> <div class="container">
<h1 class="text-center karmen-title"> <h1 class="text-center karmen-title">
<span class="fa fa-landmark"></span> <span class="fa fa-landmark"></span>
OEF 2021 OIEF 2022
<small>La piattaforma di gara</small> <small>La piattaforma di gara</small>
</h1> </h1>
<div class="login"> <div class="login">

View file

@ -29,8 +29,8 @@
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "Firstname") "update" $update}} {{template "input" dict "options" ($options|yaml) "value" (.Data|field "Firstname") "update" $update}}
</div> </div>
<div class="col"> <div class="col">
{{$options := ` { name: "Lastname",id: "participant_lastname",label: "Cognome del partecipante",placeholder: "Inserire il cognome del partecipante",type: "text",required: "true"} `}} {{$options := ` { name: "Lastname",id: "participant_lastname",label: "Cognome del partecipante",placeholder: "Inserire il cognome del partecipante",type: "text",required: "true"} `}}
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "Lastname") "update" $update}} {{template "input" dict "options" ($options|yaml) "value" (.Data|field "Lastname") "update" $update}}
</div> </div>
</div> </div>
@ -46,6 +46,17 @@
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "FiscalCode") "update" $update}} {{template "input" dict "options" ($options|yaml) "value" (.Data|field "FiscalCode") "update" $update}}
{{end}} {{end}}
<div class="form-row">
<div class="col">
{{$options := ` { name: "Year",id: "participant_year",label: "Anno di corso",placeholder: "Inserire l'anno di corso",type: "number",required: "true"} `}}
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "Year") "update" $update}}
</div>
<div class="col">
{{$options := ` { name: "StudyField",id: "participant_study_field",label: "Indirizzo del corso di studi",placeholder: "Inserire l'indirizzo frequentato",type: "text",required: "true"} `}}
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "StudyField") "update" $update}}
</div>
</div>
{{$options := ` {{$options := `
name: "category_id" name: "category_id"
id: "category_id" id: "category_id"

View file

@ -20,6 +20,10 @@
<dd class="col-sm-9"><span class="text-monospace">{{.Data.User.Password}}</span></dd> <dd class="col-sm-9"><span class="text-monospace">{{.Data.User.Password}}</span></dd>
<dt class="col-sm-3">Categoria</dt> <dt class="col-sm-3">Categoria</dt>
<dd class="col-sm-9">{{.Data.Category}}</dd> <dd class="col-sm-9">{{.Data.Category}}</dd>
<dt class="col-sm-3">Anno di corso</dt>
<dd class="col-sm-9">{{.Data.Year}}</dd>
<dt class="col-sm-3">Indirizzo di studi</dt>
<dd class="col-sm-9">{{.Data.StudyField}}</dd>
{{if $isAdmin}} {{if $isAdmin}}
{{if $creatorUser:=.Data.CreatedBy}} {{if $creatorUser:=.Data.CreatedBy}}

View file

@ -85,8 +85,16 @@
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "SchoolContactPersonFirstname") "update" $update}} {{template "input" dict "options" ($options|yaml) "value" (.Data|field "SchoolContactPersonFirstname") "update" $update}}
</div> </div>
<div class="col"> <div class="col">
{{$options := ` { name: "SchoolContactPersonLastname",id: "school_contact_person_lastname",label: "Cognome del referente di sede",placeholder: "Inserire il cognome del referente di sede",type: "text",required: "true"} `}} {{$options := ` { name: "SchoolContactPersonLastname",id: "school_contact_person_lastname",label: "Cognome del referente di sede",placeholder: "Inserire il cognome del referente di sede",type: "text",required: "true"} `}}
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "SchoolContactPersonLastname") "update" $update}} {{template "input" dict "options" ($options|yaml) "value" (.Data|field "SchoolContactPersonLastname") "update" $update}}
</div>
<div class="col">
{{$options := ` { name: "SchoolContactPersonEmail",id: "school_contact_person_email",label: "Email del referente di sede",placeholder: "Inserire l'email del referente di sede",type: "email",required: "true"} `}}
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "SchoolContactPersonEmail") "update" $update}}
</div>
<div class="col">
{{$options := ` { name: "SchoolContactPersonTelephoneNumber",id: "school_contact_person_telephone_number",label: "Telefono del referente di sede",placeholder: "Inserire il n. di telefono del referente di sede",type: "telephone_number",required: "true"} `}}
{{template "input" dict "options" ($options|yaml) "value" (.Data|field "SchoolContactPersonTelephoneNumber") "update" $update}}
</div> </div>
</div> </div>

View file

@ -58,7 +58,7 @@
<dt class="col-sm-3">Password</dt> <dt class="col-sm-3">Password</dt>
<dd class="col-sm-9"><span class="text-monospace">{{.Data.User.Password}}</span></dd> <dd class="col-sm-9"><span class="text-monospace">{{.Data.User.Password}}</span></dd>
<dt class="col-sm-3">Referente di sede</dt><dd class="col-sm-9">{{.Data.SchoolContactPersonLastname}} {{.Data.SchoolContactPersonFirstname}}</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>
{{if $isAdmin}} {{if $isAdmin}}