|
|
|
|
@ -35,7 +35,7 @@ struct UserCreationFormView: View { |
|
|
|
|
Form { |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
TextField("Username", text: self.$username) |
|
|
|
|
TextField("Nom d'utilisateur", text: self.$username) |
|
|
|
|
.autocorrectionDisabled() |
|
|
|
|
.textInputAutocapitalization(.never) |
|
|
|
|
TextField("Email", text: self.$email) |
|
|
|
|
@ -45,18 +45,18 @@ struct UserCreationFormView: View { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
SecureField("Password", text: self.$password1) |
|
|
|
|
SecureField("Confirm password", text: self.$password2) |
|
|
|
|
SecureField("Mot de passe", text: self.$password1) |
|
|
|
|
SecureField("Confirmez le mot de passe", text: self.$password2) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
TextField("First Name", text: self.$firstName) |
|
|
|
|
TextField("Prénom", text: self.$firstName) |
|
|
|
|
.autocorrectionDisabled() |
|
|
|
|
TextField("Last Name", text: self.$lastName) |
|
|
|
|
TextField("Nom", text: self.$lastName) |
|
|
|
|
.autocorrectionDisabled() |
|
|
|
|
TextField("Phone", text: self.$phone) |
|
|
|
|
TextField("Téléphone", text: self.$phone) |
|
|
|
|
.autocorrectionDisabled() |
|
|
|
|
Picker("Select a country", selection: $selectedCountryIndex) { |
|
|
|
|
Picker("Pays", selection: $selectedCountryIndex) { |
|
|
|
|
ForEach(0..<self.countries.count, id: \.self) { index in |
|
|
|
|
Text(self.countries[index]).tag(index) |
|
|
|
|
} |
|
|
|
|
@ -78,7 +78,7 @@ struct UserCreationFormView: View { |
|
|
|
|
if self.isLoading { |
|
|
|
|
ProgressView() |
|
|
|
|
} else { |
|
|
|
|
Text("Create") |
|
|
|
|
Text("Créer") |
|
|
|
|
} |
|
|
|
|
}).disabled(!self.dataCollectAuthorized) |
|
|
|
|
.frame(maxWidth: .infinity) |
|
|
|
|
@ -87,7 +87,7 @@ struct UserCreationFormView: View { |
|
|
|
|
.onAppear { |
|
|
|
|
self._selectCountry() |
|
|
|
|
} |
|
|
|
|
.alert("Password do not match", isPresented: self.$showUnmatchingPasswordView, actions: { |
|
|
|
|
.alert("Les mots de passe ne correspondent pas", isPresented: self.$showUnmatchingPasswordView, actions: { |
|
|
|
|
Button("Ok", action: {}) |
|
|
|
|
} ) |
|
|
|
|
} |
|
|
|
|
@ -153,7 +153,7 @@ struct UserCreationView: View { |
|
|
|
|
UserCreationFormView(showLoginScreen: self.$showLoginScreen) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.navigationTitle("Create user") |
|
|
|
|
.navigationTitle("Créez votre compte") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|