|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
|
|
|
|
x:Class="Views.Login"
|
|
|
|
|
xmlns:local="clr-namespace:Views"
|
|
|
|
|
Title="Login"
|
|
|
|
@ -22,46 +23,66 @@
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Login -->
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
<Label Grid.Column="1" Grid.Row="0"
|
|
|
|
|
|
|
|
|
|
Text="Login :"
|
|
|
|
|
|
|
|
|
|
FontAttributes="Bold"
|
|
|
|
|
FontSize="Medium"
|
|
|
|
|
Padding="0,50,0,10"
|
|
|
|
|
MinimumWidthRequest="200"/>
|
|
|
|
|
<Entry x:Name="login_entry"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
|
|
|
|
|
<Entry Grid.Column="1" Grid.Row="1"
|
|
|
|
|
|
|
|
|
|
x:Name="login_entry"
|
|
|
|
|
Placeholder="exemple@mctg.fr" PlaceholderColor="DimGrey"
|
|
|
|
|
IsSpellCheckEnabled="False"
|
|
|
|
|
toolkit:SetFocusOnEntryCompletedBehavior.NextElement="{x:Reference passwd_entry}"
|
|
|
|
|
|
|
|
|
|
BackgroundColor="#D1E8E2"
|
|
|
|
|
Margin="0,0,0,20"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Password -->
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
<Label Grid.Column="1" Grid.Row="2"
|
|
|
|
|
|
|
|
|
|
Text="Mot de passe :"
|
|
|
|
|
|
|
|
|
|
FontAttributes="Bold"
|
|
|
|
|
FontSize="Medium"
|
|
|
|
|
Padding="0,50,0,10"
|
|
|
|
|
MinimumWidthRequest="200"/>
|
|
|
|
|
<Entry x:Name="passwd_entry"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
|
|
|
|
|
<Entry Grid.Column="1" Grid.Row="3"
|
|
|
|
|
|
|
|
|
|
x:Name="passwd_entry"
|
|
|
|
|
IsPassword="True"
|
|
|
|
|
Completed="LoginButton_Clicked"
|
|
|
|
|
|
|
|
|
|
BackgroundColor="#D1E8E2"
|
|
|
|
|
Margin="0,0,0,50"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Checkbox first login -->
|
|
|
|
|
<CheckBox x:Name="firstLogin_checkbox"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Grid.Row="4"/>
|
|
|
|
|
<Label Grid.Column="1"
|
|
|
|
|
Grid.Row="4"
|
|
|
|
|
Text="première connection"
|
|
|
|
|
Margin="50,0,0,0"
|
|
|
|
|
FontAttributes="Italic"/>
|
|
|
|
|
<HorizontalStackLayout
|
|
|
|
|
Grid.Column="1" Grid.Row="4"
|
|
|
|
|
HorizontalOptions="Center">
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
x:Name="firstLogin_checkbox"/>
|
|
|
|
|
<Label
|
|
|
|
|
Text="première connection"
|
|
|
|
|
FontAttributes="Italic"
|
|
|
|
|
Margin="10, 20"/>
|
|
|
|
|
|
|
|
|
|
</HorizontalStackLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Return button -->
|
|
|
|
|
<Button BackgroundColor="#D1E8E2"
|
|
|
|
|
<Button Text="Connection"
|
|
|
|
|
BackgroundColor="{StaticResource Primary}"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Grid.Row="5"
|
|
|
|
|
Clicked="LoginButton_Clicked"/>
|
|
|
|
|