57 lines
2.7 KiB
XML
57 lines
2.7 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:Asistencia.ViewModels"
|
|
x:Class="Asistencia.Views.LoginView"
|
|
x:DataType="vm:LoginViewModel">
|
|
|
|
<Panel Background="{DynamicResource BackgroundSecondary}">
|
|
<Border HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
CornerRadius="16" Padding="48" Width="420"
|
|
Background="{DynamicResource BackgroundPrimary}"
|
|
BorderBrush="{DynamicResource BorderColor}" BorderThickness="1">
|
|
|
|
<StackPanel Spacing="8">
|
|
<TextBlock Text="Sistema de Asistencia"
|
|
FontSize="28" FontWeight="Bold"
|
|
Foreground="{DynamicResource PrimaryNavy}"
|
|
HorizontalAlignment="Center" />
|
|
|
|
<TextBlock Text="Modo offline"
|
|
FontSize="14" Foreground="{DynamicResource TextSecondary}"
|
|
HorizontalAlignment="Center" Margin="0,0,0,24" />
|
|
|
|
<TextBlock Text="RUT" FontSize="13" FontWeight="SemiBold"
|
|
Foreground="{DynamicResource TextPrimary}" />
|
|
<TextBox PlaceholderText="Ej: 15668563-1"
|
|
Text="{Binding Rut}"
|
|
FontSize="14" Margin="0,0,0,12" />
|
|
|
|
<TextBlock Text="Tipo de asignacion" FontSize="13" FontWeight="SemiBold"
|
|
Foreground="{DynamicResource TextPrimary}" Margin="0,0,0,4" />
|
|
<RadioButton Content="Titular"
|
|
IsChecked="{Binding EsTitular}"
|
|
GroupName="TipoAsignacion"
|
|
FontSize="14" />
|
|
<RadioButton Content="Reemplazo"
|
|
IsChecked="{Binding EsReemplazo}"
|
|
GroupName="TipoAsignacion"
|
|
FontSize="14" Margin="0,0,0,16" />
|
|
|
|
<Button Content="Ingresar"
|
|
Command="{Binding LoginCommand}"
|
|
Classes="primary"
|
|
HorizontalAlignment="Stretch"
|
|
Height="44"
|
|
IsEnabled="{Binding !IsLoading}" />
|
|
|
|
<TextBlock Text="{Binding ErrorMessage}"
|
|
Foreground="{DynamicResource DangerColor}"
|
|
FontSize="13"
|
|
HorizontalAlignment="Center"
|
|
IsVisible="{Binding HasError}"
|
|
Margin="0,8,0,0" />
|
|
</StackPanel>
|
|
</Border>
|
|
</Panel>
|
|
</UserControl>
|