bitwarden-android/src/App/Pages/Accounts/LoginPage.xaml

76 lines
3 KiB
Text
Raw Normal View History

2019-04-19 16:42:55 +03:00
<?xml version="1.0" encoding="utf-8" ?>
2019-05-01 22:29:57 +03:00
<pages:BaseContentPage
2019-04-19 16:42:55 +03:00
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Pages.LoginPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
2019-05-01 22:11:54 +03:00
xmlns:controls="clr-namespace:Bit.App.Controls"
2019-04-22 20:47:45 +03:00
xmlns:u="clr-namespace:Bit.App.Utilities"
2019-04-19 16:42:55 +03:00
x:DataType="pages:LoginPageViewModel"
Title="{Binding PageTitle}">
2019-05-01 22:11:54 +03:00
2019-04-19 16:42:55 +03:00
<ContentPage.BindingContext>
<pages:LoginPageViewModel />
</ContentPage.BindingContext>
2019-05-01 22:11:54 +03:00
<ContentPage.Resources>
<ResourceDictionary>
<u:InverseBoolConverter x:Key="inverseBool" />
</ResourceDictionary>
</ContentPage.Resources>
2019-04-19 16:42:55 +03:00
<ContentPage.ToolbarItems>
2019-05-01 22:11:54 +03:00
<ToolbarItem Text="{u:I18n LogIn}" Clicked="LogIn_Clicked" />
2019-04-19 16:42:55 +03:00
</ContentPage.ToolbarItems>
2019-05-01 22:11:54 +03:00
<ScrollView>
<StackLayout Spacing="20">
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n EmailAddress}"
StyleClass="box-label" />
<Entry
2019-05-01 22:29:57 +03:00
x:Name="_email"
2019-05-01 22:11:54 +03:00
Text="{Binding Email}"
2019-05-01 22:53:56 +03:00
Keyboard="Email"
2019-05-01 22:11:54 +03:00
StyleClass="box-value" />
</StackLayout>
<Grid StyleClass="box-row">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label
Text="{u:I18n MasterPassword}"
StyleClass="box-label"
Grid.Row="0"
Grid.Column="0" />
<controls:MonoEntry
2019-05-01 22:29:57 +03:00
x:Name="_masterPassword"
2019-05-01 22:11:54 +03:00
Text="{Binding MasterPassword}"
StyleClass="box-value"
IsPassword="{Binding ShowPassword, Converter={StaticResource inverseBool}}"
Grid.Row="1"
Grid.Column="0" />
<controls:FaButton
StyleClass="box-row-button, box-row-button-platform"
Text="{Binding ShowPasswordIcon}"
Command="{Binding TogglePasswordCommand}"
Grid.Row="0"
Grid.Column="1"
Grid.RowSpan="2" />
</Grid>
</StackLayout>
<StackLayout Padding="10, 0">
2019-05-01 22:53:56 +03:00
<Button Text="{u:I18n GetPasswordHint}" Clicked="Hint_Clicked"></Button>
2019-05-01 22:11:54 +03:00
</StackLayout>
</StackLayout>
</ScrollView>
2019-04-19 16:42:55 +03:00
2019-05-01 22:29:57 +03:00
</pages:BaseContentPage>