inscriptions

package
v0.0.0-...-151ce6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Expose les fonctionnalités du formulaire d'inscription aux séjours ACVE.

Index

Constants

View Source
const (
	UrlInscriptions   = "/inscription"
	EndPointValidMail = "/valide-mail"
)

Variables

adresse de confirmation du mail

Functions

This section is empty.

Types

type CampSimple

type CampSimple struct {
	Id        int64     `json:"id"`
	IdGroupe  int64     `json:"id_groupe"`
	Label     rd.String `json:"label"`
	Prix      rd.Euros  `json:"prix"`
	DateDebut rd.Date   `json:"date_debut"`
	DateFin   rd.Date   `json:"date_fin"`
	AgeMin    rd.Int    `json:"age_min"`
	AgeMax    rd.Int    `json:"age_max"`
}

func (*CampSimple) From

func (c *CampSimple) From(camp rd.Camp)

type Controller

type Controller struct {
	shared.Controller
}

func (Controller) CheckMail

func (ct Controller) CheckMail(c echo.Context) error

CheckMail analyse l'adresse mail donnée et envoie un lien d'inscription rapide aux personnes concernées.

func (Controller) EnregistreInscriptionComplete

func (ct Controller) EnregistreInscriptionComplete(c echo.Context) error

EnregistreInscriptionComplete vérifie l'inscription et valide le mail (soit directement, soit par lien de confirmation)

func (Controller) EnregistreInscriptionSimple

func (ct Controller) EnregistreInscriptionSimple(c echo.Context) error

EnregistreInscriptionSimple enregistre une inscription sur un séjour simplifié.

func (Controller) FormulaireInscription

func (ct Controller) FormulaireInscription(c echo.Context) error

FormulaireInscription affiche la page d'inscription, qui dépend du camp éventuellement présent dans l'url.

func (Controller) HandleLoadDataInscriptions

func (ct Controller) HandleLoadDataInscriptions(c echo.Context) error

HandleLoadDataInscriptions décode la préinscription et renvoie les données des séjours.

func (Controller) RejoueInscriptionComplete

func (ct Controller) RejoueInscriptionComplete(c echo.Context) error

RejoueInscriptionComplete enregristre l'inscription mais ne vérifie pas le mail Entre autre, aucun mail n'est envoyé.

func (Controller) ValideMail

func (ct Controller) ValideMail(c echo.Context) error

ValideMail décrypte l'id de la facture et renvoie vers l'espace perso

type DataInscription

type DataInscription struct {
	Camps              []shared.Camp  `json:"camps"`
	PreselectCamp      string         `json:"preselect_camp"`
	InitialInscription rd.Inscription `json:"initial_inscription"`
}

type EnregistreInscriptionOut

type EnregistreInscriptionOut struct {
	CheckMail      bool   `json:"check_mail"`
	UrlEspacePerso string `json:"url_espace_perso"`
}

type InscriptionSimple

type InscriptionSimple struct {
	Nom           rd.String `json:"nom"`
	Prenom        rd.String `json:"prenom"`
	Sexe          rd.Sexe   `json:"sexe"`
	DateNaissance rd.Date   `json:"date_naissance"`
	Mail          rd.String `json:"mail"`
	Tel           string    `json:"tel"`
	Info          rd.String `json:"info"`
}

type MetaInscription

type MetaInscription struct {
	IsComplet       bool   `json:"is_complet"`
	LabelCampSimple string `json:"label_camp_simple"`
}

MetaInscription paramétrise le mode d'inscription (simple ou complet)

type Preinscription

type Preinscription struct {
	IdResponsable int64
	IdsEnfants    rd.Ids
}

Preinscription code le choix d'un responsable et des participants associés.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL