Many improvements
This commit is contained in:
69
config.go
69
config.go
@@ -37,6 +37,10 @@ func ReadConfig() (*viper.Viper, error) {
|
||||
"dashboard": map[string]any{
|
||||
"enabled": true,
|
||||
},
|
||||
"members": map[string]any{
|
||||
"enabled": true,
|
||||
"profile_optional_fields": []map[string]any{},
|
||||
},
|
||||
"beneficiaries": map[string]any{
|
||||
"enabled": true,
|
||||
"validated_profile": map[string]any{
|
||||
@@ -46,6 +50,67 @@ func ReadConfig() (*viper.Viper, error) {
|
||||
"documents": []string{},
|
||||
},
|
||||
},
|
||||
"profile_optional_fields": []map[string]any{
|
||||
{
|
||||
"name": "gender",
|
||||
"label": "Genre",
|
||||
"type": "select",
|
||||
"options": []map[string]string{
|
||||
{"value": "0", "label": "Inconnu"},
|
||||
{"value": "1", "label": "Masculin"},
|
||||
{"value": "2", "label": "Féminin"},
|
||||
{"value": "9", "label": "Sans objet"},
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "social_situation",
|
||||
"label": "Situation sociale",
|
||||
"type": "select",
|
||||
"options": []map[string]string{
|
||||
{"value": "", "label": "Inconnu"},
|
||||
{"value": "BRSA", "label": "BRSA"},
|
||||
{"value": "Demandeur d'emploi", "label": "Demandeur d'emploi"},
|
||||
{"value": "Chantier d'insertion", "label": "Chantier d'insertion"},
|
||||
{"value": "Jeune -25", "label": "Jeune -25"},
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "registration_reason",
|
||||
"label": "Motif d'inscription",
|
||||
"type": "select",
|
||||
"options": []map[string]string{
|
||||
{"value": "", "label": "Inconnu"},
|
||||
{"value": "Pas de permis", "label": "Pas de permis"},
|
||||
{"value": "Pas de véhicule", "label": "Pas de véhicule"},
|
||||
{"value": "Perte d'autonomie", "label": "Perte d'autonomie"},
|
||||
{"value": "Autre", "label": "Autre"},
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"label": "Statut (prioritaire / non prioritaire)",
|
||||
"type": "select",
|
||||
"options": []map[string]string{
|
||||
{"value": "Non prioritaire", "label": "Non prioritaire"},
|
||||
{"value": "Prioritaire", "label": "Prioritaire"},
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "last_subscription_date",
|
||||
"label": "Date de dernière adhésion",
|
||||
"type": "date",
|
||||
},
|
||||
{
|
||||
"name": "previous_solidarity_transports_count",
|
||||
"label": "Nombre de transports solidaires précédents",
|
||||
"type": "number",
|
||||
},
|
||||
{
|
||||
"name": "comment",
|
||||
"label": "Commentaire",
|
||||
"type": "textarea",
|
||||
},
|
||||
},
|
||||
},
|
||||
"journeys": map[string]any{
|
||||
"enabled": true,
|
||||
@@ -68,10 +133,10 @@ func ReadConfig() (*viper.Viper, error) {
|
||||
"drivers": map[string]any{
|
||||
"documents_types": []string{"membership_form", "driving_licence", "identity_proof", "other"},
|
||||
"validated_profile": map[string]any{
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"required": map[string]any{
|
||||
"fields": []string{},
|
||||
"documents": []string{},
|
||||
"documents": []string{"driving_licence"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user