|
|
|
|
@ -37,6 +37,16 @@ struct TournamentSubscriptionView: View { |
|
|
|
|
LabeledContent("Épreuve") { |
|
|
|
|
Text(build.buildHolderTitle()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
LabeledContent("JAP") { |
|
|
|
|
Text(federalTournament.umpireLabel()) |
|
|
|
|
} |
|
|
|
|
LabeledContent("Mail") { |
|
|
|
|
Text(federalTournament.mailLabel()) |
|
|
|
|
} |
|
|
|
|
LabeledContent("Téléphone") { |
|
|
|
|
Text(federalTournament.phoneLabel()) |
|
|
|
|
} |
|
|
|
|
} header: { |
|
|
|
|
Text("Informations") |
|
|
|
|
} |
|
|
|
|
@ -67,28 +77,18 @@ struct TournamentSubscriptionView: View { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} header: { |
|
|
|
|
HStack { |
|
|
|
|
Text("Poids") |
|
|
|
|
Spacer() |
|
|
|
|
Text(selectedPlayers.map { $0.rank }.reduce(0, +).formatted()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
LabeledContent("JAP") { |
|
|
|
|
Text(federalTournament.umpireLabel()) |
|
|
|
|
} |
|
|
|
|
LabeledContent("Mail") { |
|
|
|
|
Text(federalTournament.mailLabel()) |
|
|
|
|
} |
|
|
|
|
LabeledContent("Téléphone") { |
|
|
|
|
Text(federalTournament.phoneLabel()) |
|
|
|
|
if selectedPlayers.isEmpty == false { |
|
|
|
|
HStack { |
|
|
|
|
Text("Poids de l'équipe") |
|
|
|
|
Spacer() |
|
|
|
|
Text(selectedPlayers.map { $0.rank }.reduce(0, +).formatted()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if let courrielEngagement = federalTournament.courrielEngagement { |
|
|
|
|
Section { |
|
|
|
|
RowButtonView("Contacter par email") { |
|
|
|
|
RowButtonView("S'inscrire par email") { |
|
|
|
|
contactType = .mail(date: nil, recipients: [courrielEngagement], bccRecipients: nil, body: messageBody, subject: messageSubject, tournamentBuild: build as? TournamentBuild) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -97,7 +97,7 @@ struct TournamentSubscriptionView: View { |
|
|
|
|
if let installation = federalTournament.installation, let telephone = installation.telephone { |
|
|
|
|
if telephone.isMobileNumber() { |
|
|
|
|
Section { |
|
|
|
|
RowButtonView("Contacter par message") { |
|
|
|
|
RowButtonView("S'inscrire par message") { |
|
|
|
|
contactType = .message(date: nil, recipients: [telephone], body: messageBodyShort, tournamentBuild: build as? TournamentBuild) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -108,6 +108,14 @@ struct TournamentSubscriptionView: View { |
|
|
|
|
Label("Appeler", systemImage: "phone") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
Text(messageBody) |
|
|
|
|
} header: { |
|
|
|
|
Text("Message preparé par Padel Club") |
|
|
|
|
} footer: { |
|
|
|
|
CopyPasteButtonView(pasteValue: messageBody) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|