2019-05-02 16:10:05 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<pages:BaseContentPage
|
|
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
x:Class="Bit.App.Pages.RegisterPage"
|
|
|
|
xmlns:pages="clr-namespace:Bit.App.Pages"
|
|
|
|
xmlns:controls="clr-namespace:Bit.App.Controls"
|
|
|
|
xmlns:u="clr-namespace:Bit.App.Utilities"
|
|
|
|
x:DataType="pages:RegisterPageViewModel"
|
|
|
|
Title="{Binding PageTitle}">
|
|
|
|
|
|
|
|
<ContentPage.BindingContext>
|
|
|
|
<pages:RegisterPageViewModel />
|
|
|
|
</ContentPage.BindingContext>
|
|
|
|
|
|
|
|
<ContentPage.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<u:InverseBoolConverter x:Key="inverseBool" />
|
|
|
|
</ResourceDictionary>
|
|
|
|
</ContentPage.Resources>
|
|
|
|
|
|
|
|
<ContentPage.ToolbarItems>
|
2021-07-27 15:25:42 +02:00
|
|
|
<ToolbarItem Text="{u:I18n Cancel}" Clicked="Close_Clicked" Order="Primary" Priority="-1" />
|
2021-08-30 18:44:12 +02:00
|
|
|
<ToolbarItem Text="{u:I18n Submit}" Clicked="Submit_Clicked" />
|
2019-05-02 16:10:05 +02:00
|
|
|
</ContentPage.ToolbarItems>
|
|
|
|
|
|
|
|
<ScrollView>
|
|
|
|
<StackLayout Spacing="20">
|
|
|
|
<StackLayout StyleClass="box">
|
|
|
|
<StackLayout StyleClass="box-row">
|
|
|
|
<Label
|
|
|
|
Text="{u:I18n EmailAddress}"
|
|
|
|
StyleClass="box-label" />
|
|
|
|
<Entry
|
|
|
|
x:Name="_email"
|
|
|
|
Text="{Binding Email}"
|
|
|
|
Keyboard="Email"
|
|
|
|
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
|
|
|
|
x:Name="_masterPassword"
|
|
|
|
Text="{Binding MasterPassword}"
|
|
|
|
StyleClass="box-value"
|
2019-06-19 22:03:55 +02:00
|
|
|
IsSpellCheckEnabled="False"
|
|
|
|
IsTextPredictionEnabled="False"
|
2019-05-02 16:10:05 +02:00
|
|
|
IsPassword="{Binding ShowPassword, Converter={StaticResource inverseBool}}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="0" />
|
2022-01-21 10:31:03 +01:00
|
|
|
<controls:IconButton
|
2019-05-02 16:10:05 +02:00
|
|
|
StyleClass="box-row-button, box-row-button-platform"
|
|
|
|
Text="{Binding ShowPasswordIcon}"
|
|
|
|
Command="{Binding TogglePasswordCommand}"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="1"
|
2019-07-22 18:04:17 +02:00
|
|
|
Grid.RowSpan="2"
|
|
|
|
AutomationProperties.IsInAccessibleTree="True"
|
|
|
|
AutomationProperties.Name="{u:I18n ToggleVisibility}" />
|
2019-05-02 16:10:05 +02:00
|
|
|
</Grid>
|
|
|
|
<Label
|
|
|
|
Text="{u:I18n MasterPasswordDescription}"
|
|
|
|
StyleClass="box-footer-label" />
|
|
|
|
</StackLayout>
|
|
|
|
<StackLayout StyleClass="box">
|
|
|
|
<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 RetypeMasterPassword}"
|
|
|
|
StyleClass="box-label"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="0" />
|
|
|
|
<controls:MonoEntry
|
|
|
|
x:Name="_confirmMasterPassword"
|
|
|
|
Text="{Binding ConfirmMasterPassword}"
|
|
|
|
StyleClass="box-value"
|
2019-06-19 22:03:55 +02:00
|
|
|
IsSpellCheckEnabled="False"
|
|
|
|
IsTextPredictionEnabled="False"
|
2019-05-02 16:10:05 +02:00
|
|
|
IsPassword="{Binding ShowPassword, Converter={StaticResource inverseBool}}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="0" />
|
2022-01-21 10:31:03 +01:00
|
|
|
<controls:IconButton
|
2019-05-02 16:10:05 +02:00
|
|
|
StyleClass="box-row-button, box-row-button-platform"
|
|
|
|
Text="{Binding ShowPasswordIcon}"
|
|
|
|
Command="{Binding ToggleConfirmPasswordCommand}"
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Column="1"
|
2019-07-22 18:04:17 +02:00
|
|
|
Grid.RowSpan="2"
|
|
|
|
AutomationProperties.IsInAccessibleTree="True"
|
|
|
|
AutomationProperties.Name="{u:I18n ToggleVisibility}" />
|
2019-05-02 16:10:05 +02:00
|
|
|
</Grid>
|
|
|
|
<StackLayout StyleClass="box-row">
|
|
|
|
<Label
|
|
|
|
Text="{u:I18n MasterPasswordHint}"
|
|
|
|
StyleClass="box-label" />
|
|
|
|
<Entry
|
2019-05-31 18:13:14 +02:00
|
|
|
x:Name="_hint"
|
2019-05-02 16:10:05 +02:00
|
|
|
Text="{Binding Hint}"
|
2019-05-31 18:13:14 +02:00
|
|
|
StyleClass="box-value"
|
|
|
|
ReturnType="Go"
|
|
|
|
ReturnCommand="{Binding SubmitCommand}" />
|
2019-05-02 16:10:05 +02:00
|
|
|
</StackLayout>
|
|
|
|
<Label
|
|
|
|
Text="{u:I18n MasterPasswordHintDescription}"
|
|
|
|
StyleClass="box-footer-label" />
|
|
|
|
</StackLayout>
|
2020-11-05 17:50:18 +01:00
|
|
|
<StackLayout StyleClass="box">
|
|
|
|
<StackLayout StyleClass="box-row, box-row-switch"
|
|
|
|
IsVisible="{Binding ShowTerms}">
|
|
|
|
<Switch
|
|
|
|
IsToggled="{Binding AcceptPolicies}"
|
|
|
|
StyleClass="box-value"
|
|
|
|
HorizontalOptions="Start"
|
|
|
|
Margin="{Binding SwitchMargin}"/>
|
|
|
|
<Label StyleClass="box-footer-label"
|
|
|
|
HorizontalOptions="Fill">
|
|
|
|
<Label.FormattedText>
|
|
|
|
<FormattedString>
|
|
|
|
<Span Text="{u:I18n AcceptPolicies}" />
|
|
|
|
<Span Text="{u:I18n TermsOfService}"
|
2021-09-24 20:14:26 +02:00
|
|
|
TextColor="{DynamicResource HyperlinkColor}">
|
2020-11-05 17:50:18 +01:00
|
|
|
<Span.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Command="{Binding PoliciesClickCommand}"
|
|
|
|
CommandParameter="https://bitwarden.com/terms/" />
|
|
|
|
</Span.GestureRecognizers>
|
|
|
|
</Span>
|
|
|
|
<Span Text=", " />
|
|
|
|
<Span Text="{u:I18n PrivacyPolicy}"
|
2021-09-24 20:14:26 +02:00
|
|
|
TextColor="{DynamicResource HyperlinkColor}">
|
2020-11-05 17:50:18 +01:00
|
|
|
<Span.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Command="{Binding PoliciesClickCommand}"
|
|
|
|
CommandParameter="https://bitwarden.com/privacy/" />
|
|
|
|
</Span.GestureRecognizers>
|
|
|
|
</Span>
|
|
|
|
</FormattedString>
|
|
|
|
</Label.FormattedText>
|
|
|
|
</Label>
|
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
2019-05-02 16:10:05 +02:00
|
|
|
</StackLayout>
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</pages:BaseContentPage>
|