feat: amélioration des formulaires d'inscription et pré-inscription

- Rendre le champ téléphone obligatoire (entités et UI).

- Ajout du champ 'Ancienne catégorie' conditionné par la saisie de l'ancien club.

- Synchronisation de l'ancienne catégorie entre la pré-inscription et la fiche adhérent.
This commit is contained in:
2026-06-29 09:03:45 +02:00
parent 348d6e6ccf
commit e3abe53eb0
5 changed files with 105 additions and 7 deletions
@@ -35,7 +35,7 @@ public class Adherent {
@Column(nullable = false, length = 100)
private String email;
@Column(length = 20)
@Column(nullable = false, length = 20)
private String telephone;
@Column(name = "representant_legal", length = 150)
@@ -47,6 +47,9 @@ public class Adherent {
@Column(name = "ancien_club", length = 150)
private String ancienClub;
@Column(name = "ancienne_categorie", length = 50)
private String ancienneCategorie;
private boolean residentTalange = true;
@Column(nullable = false, length = 10)
@@ -99,6 +102,9 @@ public class Adherent {
public String getAncienClub() { return ancienClub; }
public void setAncienClub(String ancienClub) { this.ancienClub = ancienClub; }
public String getAncienneCategorie() { return ancienneCategorie; }
public void setAncienneCategorie(String ancienneCategorie) { this.ancienneCategorie = ancienneCategorie; }
public boolean isResidentTalange() { return residentTalange; }
public void setResidentTalange(boolean residentTalange) { this.residentTalange = residentTalange; }
@@ -33,7 +33,7 @@ public class PreInscription {
@Column(nullable = false, length = 150)
private String email;
@Column(length = 20)
@Column(nullable = false, length = 20)
private String telephone;
@Column(name = "representant_legal", length = 150)
@@ -58,6 +58,9 @@ public class PreInscription {
@Column(name = "ancien_club", length = 150)
private String ancienClub;
@Column(name = "ancienne_categorie", length = 50)
private String ancienneCategorie = "NA";
// Getters and Setters
public Long getId() { return id; }
public void setId(Long id) { this.id = id; }
@@ -106,4 +109,7 @@ public class PreInscription {
public String getAncienClub() { return ancienClub; }
public void setAncienClub(String ancienClub) { this.ancienClub = ancienClub; }
public String getAncienneCategorie() { return ancienneCategorie; }
public void setAncienneCategorie(String ancienneCategorie) { this.ancienneCategorie = ancienneCategorie; }
}
@@ -46,6 +46,7 @@ public class PreInscriptionService {
adherent.setRepresentantLegal(pre.getRepresentantLegal());
adherent.setTypeDemande(pre.getTypeDemande());
adherent.setAncienClub(pre.getAncienClub());
adherent.setAncienneCategorie(pre.getAncienneCategorie());
// Par défaut
adherent.setSexe("MASCULIN");
adherent.setTypeMaillot("JOUEUR");