mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
159 lines
No EOL
8.6 KiB
XML
159 lines
No EOL
8.6 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
|
x:Class="TINK.View.Login.LoginPage">
|
|
<Shell.TitleView>
|
|
<Grid ColumnDefinitions="Auto, 1*">
|
|
<Label Style="{StaticResource Label-Navbar}"
|
|
Text="{x:Static resources:AppResources.MarkingLogin}"/>
|
|
</Grid>
|
|
</Shell.TitleView>
|
|
|
|
<ScrollView>
|
|
<Frame>
|
|
<StackLayout x:Name="LoginPageView">
|
|
<Frame>
|
|
<StackLayout>
|
|
<Label Text="{x:Static resources:AppResources.MarkingLoginEmailAddressLabel}"/>
|
|
<Entry
|
|
Placeholder="{x:Static resources:AppResources.MarkingLoginEmailAddressPlaceholder}"
|
|
Keyboard="Email"
|
|
AutomationId="mail_address_text"
|
|
x:Name="EMailEntry"
|
|
Text="{Binding MailAddress}"
|
|
IsEnabled="{Binding IsLoggedOut}"/>
|
|
<Label Text="{x:Static resources:AppResources.MarkingLoginPasswordLabel}"/>
|
|
<Entry
|
|
Placeholder="{x:Static resources:AppResources.MarkingLoginPasswordPlaceholder}"
|
|
AutomationId="password_text"
|
|
IsPassword="true"
|
|
x:Name="PasswordEntry"
|
|
Text="{Binding Password}"
|
|
IsEnabled="{Binding IsLoggedOut}"/>
|
|
<Button
|
|
Text="{x:Static resources:AppResources.ActionLoginLogin}"
|
|
AutomationId="login_button"
|
|
Command="{Binding OnLoginRequest}"
|
|
IsEnabled="{Binding IsLoginRequestAllowed}">
|
|
</Button>
|
|
<Button
|
|
Text="{x:Static resources:AppResources.ActionLoginRegister}"
|
|
AutomationId="register_button"
|
|
Command="{Binding OnRegisterRequest}"
|
|
IsVisible="{Binding IsWebViewElementsVisible}">
|
|
</Button>
|
|
<Label
|
|
IsVisible="{Binding IsRegisterTargetsInfoVisible}"
|
|
FormattedText="{Binding RegisterTargetsInfo}">
|
|
</Label>
|
|
<Button
|
|
Text="{x:Static resources:AppResources.ActionLoginPasswordForgotten}"
|
|
AutomationId="password_forgotten_button"
|
|
Command="{Binding OnPasswordForgottonRequest}">
|
|
</Button>
|
|
</StackLayout>
|
|
</Frame>
|
|
</StackLayout>
|
|
</Frame>
|
|
</ScrollView>
|
|
|
|
<!-- Possible New Design -->
|
|
<!--<ScrollView>
|
|
<Frame>
|
|
<StackLayout x:Name="LoginPageView">
|
|
<Frame>
|
|
<StackLayout>
|
|
<Label Text="{x:Static resources:AppResources.MarkingLoginEmailAddressLabel}"
|
|
Margin="0,0,0,-10">
|
|
<Label.Triggers>
|
|
<DataTrigger
|
|
TargetType="Label"
|
|
Binding="{Binding Source={x:Reference EMailEntry}, Path=Text, TargetNullValue=''}"
|
|
Value="">
|
|
<Setter Property="IsVisible" Value="False" />
|
|
</DataTrigger>
|
|
</Label.Triggers>
|
|
</Label>
|
|
<Entry
|
|
Placeholder="{x:Static resources:AppResources.MarkingLoginEmailAddressPlaceholder}"
|
|
Keyboard="Email"
|
|
AutomationId="mail_address_text"
|
|
x:Name="EMailEntry"
|
|
Text="{Binding MailAddress}"
|
|
IsEnabled="{Binding IsLoggedOut}"/>
|
|
<Label Text="{x:Static resources:AppResources.MarkingLoginPasswordPlaceholder}"
|
|
Margin="0,0,0,-10">
|
|
<Label.Triggers>
|
|
<DataTrigger
|
|
TargetType="Label"
|
|
Binding="{Binding Source={x:Reference PasswordEntry}, Path=Text, TargetNullValue=''}"
|
|
Value="">
|
|
<Setter Property="IsVisible" Value="False" />
|
|
</DataTrigger>
|
|
</Label.Triggers>
|
|
</Label>
|
|
<Entry Placeholder="{x:Static resources:AppResources.MarkingLoginPasswordPlaceholder}"
|
|
AutomationId="password_text"
|
|
IsPassword="true"
|
|
x:Name="PasswordEntry"
|
|
Text="{Binding Password}"
|
|
IsEnabled="{Binding IsLoggedOut}"/>
|
|
<Label Text="{x:Static resources:AppResources.MarkingLoginPasswordLabel}"
|
|
HorizontalOptions="End"
|
|
Margin="0,-10,0,5"
|
|
FontSize="Small">
|
|
<Label.Triggers>
|
|
<DataTrigger
|
|
TargetType="Label"
|
|
Binding="{Binding Source={x:Reference PasswordEntry}, Path=Text, TargetNullValue=''}"
|
|
Value="">
|
|
<Setter Property="IsVisible" Value="False" />
|
|
</DataTrigger>
|
|
</Label.Triggers>
|
|
</Label>
|
|
<Button
|
|
Text="{x:Static resources:AppResources.ActionLoginLogin}"
|
|
AutomationId="login_button"
|
|
Command="{Binding OnLoginRequest}"
|
|
IsEnabled="{Binding IsLoginRequestAllowed}">
|
|
</Button>
|
|
<Button
|
|
Text="{x:Static resources:AppResources.ActionLoginRegister}"
|
|
AutomationId="register_button"
|
|
Command="{Binding OnRegisterRequest}"
|
|
IsVisible="{Binding IsWebViewElementsVisible}">
|
|
</Button>
|
|
<Button
|
|
Style="{StaticResource SecondaryButton}"
|
|
Text="{x:Static resources:AppResources.ActionLoginRegister}"
|
|
AutomationId="register_button"
|
|
Command="{Binding OnRegisterRequest}"
|
|
IsVisible="{Binding IsWebViewElementsVisible}">
|
|
</Button>
|
|
<Label
|
|
IsVisible="{Binding IsRegisterTargetsInfoVisible}"
|
|
FormattedText="{Binding RegisterTargetsInfo}">
|
|
</Label>
|
|
<Button
|
|
Text="{x:Static resources:AppResources.ActionLoginPasswordForgotten}"
|
|
AutomationId="password_forgotten_button"
|
|
Command="{Binding OnPasswordForgottonRequest}">
|
|
</Button>
|
|
<Label
|
|
Margin="0,10,0,0"
|
|
TextType="Html"
|
|
AutomationId="password_forgotten_button"
|
|
HorizontalOptions="Center"
|
|
TextColor="{DynamicResource primary-back-title-color}"
|
|
Text="{x:Static resources:AppResources.ActionLoginPasswordForgotten}">
|
|
<Label.GestureRecognizers>
|
|
<TapGestureRecognizer Command="{Binding OnPasswordForgottonRequest}"/>
|
|
</Label.GestureRecognizers>
|
|
</Label>
|
|
</StackLayout>
|
|
</Frame>
|
|
</StackLayout>
|
|
</Frame>
|
|
</ScrollView>-->
|
|
</ContentPage> |