@ -27,31 +27,54 @@ struct InscriptionInfoView: View {
var body : some View {
List {
Section {
let footerString = " via [beach-padel.app.fft.fr]( \( URLs . beachPadel . rawValue ) ) "
LabeledContent {
Text ( selectedTeams . filter { $0 . called ( ) } . count . formatted ( ) )
} label : {
Text ( " Paires convoquées " )
}
. listRowView ( color : . cyan )
LabeledContent {
Text ( selectedTeams . filter { $0 . confirmed ( ) } . count . formatted ( ) )
} label : {
Text ( " Paires ayant confirmées " )
}
. listRowView ( color : . green )
}
if tournament . isAnimation ( ) = = false , entriesFromBeachPadel . count > 0 {
let notFromBeach = selectedTeams . filter ( { $0 . isImported ( ) = = false } )
Section {
let subtitle = " via [beach-padel.app.fft.fr]( \( URLs . beachPadel . rawValue ) ) "
LabeledContent {
Text ( entriesFromBeachPadel . count . formatted ( ) )
} label : {
Text ( " Paires importées " )
Text ( . init ( footerString ) )
Text ( . init ( subtitle ) )
}
. listRowView ( color : . indigo )
DisclosureGroup {
ForEach ( notFromBeach ) { team in
TeamDetailView ( team : team )
}
} label : {
LabeledContent {
Text ( selectedTeams . filter { $0 . called ( ) } . count . formatted ( ) )
Text ( notFromBeach . count . formatted ( ) )
} label : {
Text ( " Paires convoquées " )
Text ( " Vous avez envoyé une convocation par sms ou email " )
Text ( " Paires non importées " )
}
. listRowView ( color : . cyan )
}
. listRowView ( color : . brown )
} footer : {
if notFromBeach . isEmpty = = false {
let footerString = " Au moins un joueur ne provient pas du fichier. Il est possible que vous ayez à mettre à jour les équipes sur [beach-padel.app.fft.fr]( \( URLs . beachPadel . rawValue ) ) "
// L a b e l e d C o n t e n t {
// T e x t ( s e l e c t e d T e a m s . f i l t e r { $ 0 . c o n f i r m e d ( ) } . c o u n t . f o r m a t t e d ( ) )
// } l a b e l : {
// T e x t ( " P a i r e s a y a n t c o n f i r m é e s " )
// T e x t ( " V o u s a v e z n o t é l a c o n f i r m a t i o n d e l ' é q u i p e " )
// }
// . l i s t R o w V i e w ( c o l o r : . g r e e n )
Text ( . init ( footerString ) )
}
}
}
Section {