@ -125,7 +125,11 @@ struct FileImportView: View {
Text ( $0 . localizedLabel ) . tag ( $0 )
Text ( $0 . localizedLabel ) . tag ( $0 )
}
}
} label : {
} label : {
Text ( " Source du fichier " )
Text ( " Source " )
}
if fileProvider = = . customAutoSearch {
Text ( " Padel Club essaiera de chercher les joueurs dans la base fédérale automatiquement " )
}
}
RowButtonView ( " Démarrer l'importation " ) {
RowButtonView ( " Démarrer l'importation " ) {
@ -142,17 +146,10 @@ struct FileImportView: View {
if fileProvider = = . frenchFederation {
if fileProvider = = . frenchFederation {
let footerString = " Fichier provenant de [beach-padel.app.fft.fr]( \( URLs . beachPadel . rawValue ) ) "
let footerString = " Fichier provenant de [beach-padel.app.fft.fr]( \( URLs . beachPadel . rawValue ) ) "
Text ( . init ( footerString ) )
Text ( . init ( footerString ) )
} else if fileProvider = = . custom {
} else if fileProvider = = . custom || fileProvider = = . customAutoSearch {
FooterButtonView ( " Voir le format du fichier " ) {
FooterButtonView ( " Voir le format du fichier " ) {
presentFormatHelperView = true
presentFormatHelperView = true
}
}
} else if fileProvider = = . customAutoSearch {
HStack {
Text ( " Padel Club essaiera de chercher les joueurs dans la base fédérale automatiquement " )
FooterButtonView ( " Voir le format du fichier " ) {
presentFormatHelperView = true
}
}
}
}
}
}
@ -237,7 +234,7 @@ struct FileImportView: View {
if filteredTeams . isEmpty && teams . isEmpty = = false && multiImport = = false {
if filteredTeams . isEmpty && teams . isEmpty = = false && multiImport = = false {
@ Bindable var tournament = tournament
@ Bindable var tournament = tournament
Section {
Section {
Text ( " Aucune équipe \( tournament . tournamentCategory . importingRawValue ) \( tournament . federalAgeCategory . importingRawValue ) détectée mais \( teams . count ) équipes sont dans le fichier " )
Text ( " Aucune équipe \( tournament . tournamentCategory . importingRawValue ) \( tournament . federalAgeCategory . importingRawValue . lowercased ( ) ) détectée mais \( teams . count ) équipes sont dans le fichier " )
Picker ( selection : $ tournament . tournamentCategory ) {
Picker ( selection : $ tournament . tournamentCategory ) {
ForEach ( [ TournamentCategory . men , TournamentCategory . women , TournamentCategory . mix ] ) { category in
ForEach ( [ TournamentCategory . men , TournamentCategory . women , TournamentCategory . mix ] ) { category in
Text ( category . importingRawValue ) . tag ( category )
Text ( category . importingRawValue ) . tag ( category )