|
|
|
@ -57,7 +57,7 @@ struct BroadcastView: View { |
|
|
|
} header: { |
|
|
|
} header: { |
|
|
|
Text("Liste des équipes") |
|
|
|
Text("Liste des équipes") |
|
|
|
} footer: { |
|
|
|
} footer: { |
|
|
|
if tournament.publishedTeamsDate() < Date() { |
|
|
|
if Date() < tournament.publishedTeamsDate() { |
|
|
|
FooterButtonView(tournament.publishTeams ? "masquer sur le site" : "publier maintenant") { |
|
|
|
FooterButtonView(tournament.publishTeams ? "masquer sur le site" : "publier maintenant") { |
|
|
|
tournament.publishTeams.toggle() |
|
|
|
tournament.publishTeams.toggle() |
|
|
|
} |
|
|
|
} |
|
|
|
@ -81,7 +81,7 @@ struct BroadcastView: View { |
|
|
|
} header: { |
|
|
|
} header: { |
|
|
|
Text("Convocations") |
|
|
|
Text("Convocations") |
|
|
|
} footer: { |
|
|
|
} footer: { |
|
|
|
if tournament.publishedTeamsDate() < Date() { |
|
|
|
if Date() < tournament.publishedTeamsDate() { |
|
|
|
FooterButtonView(tournament.publishSummons ? "masquer sur le site" : "publier maintenant") { |
|
|
|
FooterButtonView(tournament.publishSummons ? "masquer sur le site" : "publier maintenant") { |
|
|
|
tournament.publishSummons.toggle() |
|
|
|
tournament.publishSummons.toggle() |
|
|
|
} |
|
|
|
} |
|
|
|
@ -107,7 +107,7 @@ struct BroadcastView: View { |
|
|
|
} header: { |
|
|
|
} header: { |
|
|
|
Text("Poules") |
|
|
|
Text("Poules") |
|
|
|
} footer: { |
|
|
|
} footer: { |
|
|
|
if publishedGroupStagesDate < Date() { |
|
|
|
if Date() < publishedGroupStagesDate { |
|
|
|
FooterButtonView(tournament.publishGroupStages ? "masquer sur le site" : "publier maintenant") { |
|
|
|
FooterButtonView(tournament.publishGroupStages ? "masquer sur le site" : "publier maintenant") { |
|
|
|
tournament.publishGroupStages.toggle() |
|
|
|
tournament.publishGroupStages.toggle() |
|
|
|
} |
|
|
|
} |
|
|
|
@ -134,7 +134,7 @@ struct BroadcastView: View { |
|
|
|
} header: { |
|
|
|
} header: { |
|
|
|
Text("Tableau") |
|
|
|
Text("Tableau") |
|
|
|
} footer: { |
|
|
|
} footer: { |
|
|
|
if publishedBracketsDate < Date() { |
|
|
|
if Date() < publishedBracketsDate{ |
|
|
|
FooterButtonView(tournament.publishBrackets ? "masquer sur le site" : "publier maintenant") { |
|
|
|
FooterButtonView(tournament.publishBrackets ? "masquer sur le site" : "publier maintenant") { |
|
|
|
tournament.publishBrackets.toggle() |
|
|
|
tournament.publishBrackets.toggle() |
|
|
|
} |
|
|
|
} |
|
|
|
|