enable online reg for animation

sync3
Raz 7 months ago
parent 0cbad6ef2d
commit a8a7a5ac3d
  1. 12
      PadelClub.xcodeproj/project.pbxproj
  2. 7
      PadelClub/Data/Tournament.swift
  3. 4
      PadelClub/Utils/PadelRule.swift
  4. 7
      PadelClub/Views/Tournament/Screen/RegistrationSetupView.swift

@ -3714,7 +3714,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.17;
MARKETING_VERSION = 1.2.18;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -3759,7 +3759,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.17;
MARKETING_VERSION = 1.2.18;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -3877,7 +3877,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.17;
MARKETING_VERSION = 1.2.18;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -3922,7 +3922,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.17;
MARKETING_VERSION = 1.2.18;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -3966,7 +3966,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.17;
MARKETING_VERSION = 1.2.18;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub.beta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -4008,7 +4008,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.17;
MARKETING_VERSION = 1.2.18;
PRODUCT_BUNDLE_IDENTIFIER = app.padelclub.beta;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";

@ -1970,6 +1970,10 @@ defer {
matchFormat = roundSmartMatchFormat(5)
entryFee = tournamentLevel.entryFee
registrationDateLimit = deadline(for: .inscription)
if enableOnlineRegistration, isAnimation() == false {
accountIsRequired = true
licenseIsRequired = true
}
}
func customizeUsingPreferences() {
@ -1990,7 +1994,8 @@ defer {
}
func onlineRegistrationCanBeEnabled() -> Bool {
isAnimation() == false
true
// isAnimation() == false
}
func roundSmartMatchFormat(_ roundIndex: Int) -> MatchFormat {

@ -495,6 +495,10 @@ enum TournamentLevel: Int, Hashable, Codable, CaseIterable, Identifiable {
var defaultTeamSortingType: TeamSortingType {
switch self {
case .championship:
return .inscriptionDate
case .unlisted:
return .inscriptionDate
case .p25, .p100, .p250:
return .inscriptionDate
default:

@ -254,10 +254,9 @@ struct RegistrationSetupView: View {
if tournament.isAnimation() {
Section {
// Toggle(isOn: $userAccountIsRequired) {
// Text("Compte Padel Club requis pour s'inscrire")
// }
// .disabled(true)
Toggle(isOn: $userAccountIsRequired) {
Text("Compte Padel Club requis pour s'inscrire")
}
Toggle(isOn: $licenseIsRequired) {
Text("Licence FFT requise pour s'inscrire")

Loading…
Cancel
Save