54 lines
2.1 KiB
XML
54 lines
2.1 KiB
XML
<?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:models="clr-namespace:Jugenddienst_Stunden.ViewModels"
|
|
xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI.Controls"
|
|
x:Class="Jugenddienst_Stunden.Views.LoginPage"
|
|
Title="{Binding Title}">
|
|
|
|
<ContentPage.BindingContext>
|
|
<models:LoginViewModel />
|
|
</ContentPage.BindingContext>
|
|
<ScrollView>
|
|
<VerticalStackLayout Spacing="10" Margin="15">
|
|
<HorizontalStackLayout Spacing="10">
|
|
<Label FontSize="22" FontAttributes="Bold" Text="{Binding AppTitle}" VerticalOptions="End" />
|
|
<Label FontSize="22" Text="{Binding Version}" VerticalOptions="End" />
|
|
</HorizontalStackLayout>
|
|
|
|
|
|
<Label Text="{Binding Message}" HeightRequest="40" />
|
|
<Label x:Name="ServerLabel" Text="{Binding Server}" HeightRequest="25" Margin="0,0,0,10" />
|
|
|
|
<Frame HeightRequest="300" Padding="0" CornerRadius="0">
|
|
<zxing:CameraBarcodeReaderView x:Name="barcodeScannerView"
|
|
BarcodesDetected="BarcodesDetected"
|
|
HorizontalOptions="FillAndExpand"
|
|
VerticalOptions="FillAndExpand"/>
|
|
</Frame>
|
|
|
|
<VerticalStackLayout Padding="30" Spacing="15">
|
|
<Label Text="Manueller Login"
|
|
FontSize="32"
|
|
HorizontalOptions="Start" />
|
|
|
|
<Entry x:Name="UsernameEntry"
|
|
Placeholder="Benutzername"
|
|
Keyboard="Email" />
|
|
|
|
<Entry x:Name="PasswordEntry"
|
|
Placeholder="Passwort"
|
|
IsPassword="True" />
|
|
|
|
<Entry x:Name="ServerEntry"
|
|
Placeholder="Server"
|
|
Keyboard="Url" />
|
|
|
|
<Button Text="Login" Clicked="OnLoginButtonClicked" />
|
|
|
|
</VerticalStackLayout>
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
|
|
|
|
</ContentPage> |