- Initialize `_acceptedTermsMangopay` to `true` in `AddPaymentUserViewModel.cs` and `BecomeWalkerViewModel.cs`. - Set `AcceptedTermsMangopay` to `true` on refresh. - Add `AutomationId` attributes to email and password `Entry` elements in `LoginFormView.xaml` for better accessibility. - Comment out a `Grid` element and remove the `Switch` control for `AcceptedTermsMangopay` in `AddPaymentUserView.xaml` and `BecomeWalkerView.xaml`.
113 lines
5.1 KiB
XML
113 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<controls:BaseContentPage
|
|
x:Class="gehGassiApp.Views.More.BecomeWalkerView"
|
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:controls="clr-namespace:gehGassiApp.Controls"
|
|
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"
|
|
xmlns:res="clr-namespace:gehGassiApp.Resources"
|
|
ControlTemplate="{StaticResource MenuPageTemplate}">
|
|
|
|
<controls:BaseContentPage.TitleView>
|
|
<controls:ShellTitleViewNoLogoControl
|
|
Initials="{Binding CurrentAppUser.Initials}"
|
|
Photo="{Binding CurrentAppUser.Photo}"
|
|
ViewModel="{Binding .}" />
|
|
</controls:BaseContentPage.TitleView>
|
|
|
|
<ContentPage.Content>
|
|
<ScrollView
|
|
x:Name="rootScrollView"
|
|
Padding="20"
|
|
HorizontalOptions="Fill"
|
|
VerticalOptions="FillAndExpand">
|
|
<VerticalStackLayout
|
|
x:Name="rootVerticalStackLayout"
|
|
HorizontalOptions="Fill"
|
|
SizeChanged="rootVerticalStackLayout_SizeChanged"
|
|
Spacing="0"
|
|
VerticalOptions="StartAndExpand">
|
|
|
|
<Label
|
|
Margin="{StaticResource MarginBig}"
|
|
HorizontalOptions="Start"
|
|
Style="{StaticResource H6_Blue}"
|
|
Text="{x:Static res:Text.BecomeWalker_Info}"
|
|
VerticalOptions="StartAndExpand" />
|
|
|
|
|
|
<Label
|
|
Margin="{StaticResource MarginLabel}"
|
|
Style="{StaticResource Menu_Blue}"
|
|
Text="{x:Static res:Text.Profile_Nationality_Question}" />
|
|
|
|
<Border Margin="{StaticResource MarginBig}" Style="{StaticResource EntryBorder}">
|
|
<controls:PickerWithChevron
|
|
Title="{x:Static res:Text.Common_SelectCountry}"
|
|
ios:Picker.UpdateMode="WhenFinished"
|
|
HorizontalOptions="Fill"
|
|
ItemDisplayBinding="{Binding Name}"
|
|
ItemsSource="{Binding Nationalitites}"
|
|
SelectedItem="{Binding SelectedNationality}" />
|
|
</Border>
|
|
|
|
<Label
|
|
Margin="{StaticResource MarginLabel}"
|
|
Style="{StaticResource Menu_Blue}"
|
|
Text="{x:Static res:Text.Profile_MainResidence_Question}" />
|
|
|
|
<Border Margin="{StaticResource MarginBig}" Style="{StaticResource EntryBorder}">
|
|
<controls:PickerWithChevron
|
|
Title="{x:Static res:Text.Common_SelectCountry}"
|
|
ios:Picker.UpdateMode="WhenFinished"
|
|
HorizontalOptions="Fill"
|
|
ItemDisplayBinding="{Binding Name}"
|
|
ItemsSource="{Binding MainResidences}"
|
|
SelectedItem="{Binding SelectedMainResidence}" />
|
|
</Border>
|
|
<!-- <Grid
|
|
Margin="{StaticResource MarginBig}"
|
|
ColumnDefinitions="*,Auto"
|
|
ColumnSpacing="10">
|
|
<Label
|
|
Grid.Column="0"
|
|
HorizontalOptions="Start"
|
|
LineBreakMode="TailTruncation"
|
|
Style="{StaticResource LinkLabelStyle}"
|
|
Text="{x:Static res:Text.Register_AcceptTermsMangopay}">
|
|
<Label.GestureRecognizers>
|
|
<TapGestureRecognizer Command="{Binding ShowTermsMangoPayCommand}" />
|
|
</Label.GestureRecognizers>
|
|
</Label>
|
|
<Switch
|
|
Grid.Column="1"
|
|
HorizontalOptions="End"
|
|
IsToggled="{Binding AcceptedTermsMangopay}"
|
|
VerticalOptions="Center" />
|
|
</Grid>-->
|
|
|
|
<ActivityIndicator
|
|
HorizontalOptions="Center"
|
|
IsRunning="{Binding IsSaving}"
|
|
IsVisible="{Binding IsSaving}"
|
|
Scale="1"
|
|
VerticalOptions="Center" />
|
|
|
|
<Button
|
|
x:Name="btnRegister"
|
|
Command="{Binding SaveCommand}"
|
|
Text="{Static res:Text.Button_BecomeWalker}">
|
|
<Button.IsEnabled>
|
|
<MultiBinding Converter="{StaticResource AllTrueMultiConverter}">
|
|
<Binding Converter="{StaticResource IsNotNullToBooleanConverter}" Path="SelectedNationality" />
|
|
<Binding Converter="{StaticResource IsNotNullToBooleanConverter}" Path="SelectedMainResidence" />
|
|
<Binding Path="AcceptedTermsMangopay" />
|
|
</MultiBinding>
|
|
</Button.IsEnabled>
|
|
</Button>
|
|
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
</ContentPage.Content>
|
|
</controls:BaseContentPage>
|