|
|
|
|
@ -234,20 +234,36 @@ struct TournamentView: View { |
|
|
|
|
Button { |
|
|
|
|
navigation.openTournamentInOrganizer(tournament) |
|
|
|
|
} label: { |
|
|
|
|
Label("Voir dans le gestionnaire", systemImage: "line.diagonal.arrow") |
|
|
|
|
Label("Gestionnaire", systemImage: "pin") |
|
|
|
|
} |
|
|
|
|
Divider() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.event) { |
|
|
|
|
Label("Événement", systemImage: "wrench.and.screwdriver") |
|
|
|
|
} |
|
|
|
|
NavigationLink(value: Screen.settings) { |
|
|
|
|
Label("Tournoi", systemImage: "wrench.and.screwdriver") |
|
|
|
|
Menu { |
|
|
|
|
NavigationLink(value: Screen.event) { |
|
|
|
|
Text("Événement") |
|
|
|
|
} |
|
|
|
|
NavigationLink(value: Screen.settings) { |
|
|
|
|
Text("Tournoi") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.structure) { |
|
|
|
|
LabelStructure() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Divider() |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.stateSettings) { |
|
|
|
|
Label("Gestion", systemImage: "trash") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} label: { |
|
|
|
|
Label("Réglages", systemImage: "wrench.and.screwdriver") |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.call) { |
|
|
|
|
Text("Convocations") |
|
|
|
|
Label("Convocations", systemImage: "calendar.badge.clock") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if tournament.tournamentLevel.haveDeadlines() { |
|
|
|
|
@ -258,20 +274,16 @@ struct TournamentView: View { |
|
|
|
|
.toolbarBackground(.visible, for: .navigationBar) |
|
|
|
|
.navigationTitle("Rappel des délais") |
|
|
|
|
} label: { |
|
|
|
|
Text("Rappel des délais") |
|
|
|
|
Label("Rappel des délais", systemImage: "calendarcalendar.badge.exclamationmark") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.structure) { |
|
|
|
|
LabelStructure() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.cashier) { |
|
|
|
|
Text(tournament.isFree() ? "Présence" : "Encaissement") |
|
|
|
|
Label(tournament.isFree() ? "Présence" : "Encaissement", systemImage: tournament.isFree() ? "person.crop.circle.badge.checkmark" : "eurosign.circle") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink(value: Screen.statistics) { |
|
|
|
|
Text("Statistiques") |
|
|
|
|
Label("Statistiques", systemImage: "123.rectangle") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|