Files
cfs-Tracker/Views/QuickEntryPage.xaml
T
2026-03-19 23:11:13 +01:00

95 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="cfs_tracker.Views.QuickEntryPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="Eintrag">
<ScrollView>
<VerticalStackLayout Padding="20" Spacing="18">
<Label
Text="Wie geht es dir?"
FontSize="28"
FontAttributes="Bold"
HorizontalTextAlignment="Center" />
<Label
Text="{Binding SelectedDateText}"
FontSize="16"
HorizontalTextAlignment="Center" />
<VerticalStackLayout
IsVisible="{Binding IsPastDate}"
Spacing="8">
<Label
Text="Tageszeit"
FontAttributes="Bold"
HorizontalTextAlignment="Center" />
<Picker
Title="Tageszeit"
ItemsSource="{Binding AvailableParts}"
SelectedItem="{Binding SelectedPartText}" />
</VerticalStackLayout>
<Label
IsVisible="{Binding IsFutureDate}"
Text="Für zukünftige Tage können keine Einträge gesetzt werden."
TextColor="Red"
HorizontalTextAlignment="Center" />
<Grid
ColumnDefinitions="*,*"
RowDefinitions="Auto,Auto"
ColumnSpacing="12"
RowSpacing="12">
<Button
Grid.Row="0"
Grid.Column="0"
Text="Grün&#10;Gut"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#4CAF50"
TextColor="White"
Command="{Binding SaveGreenCommand}" />
<Button
Grid.Row="0"
Grid.Column="1"
Text="Gelb&#10;So lala"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#FBC02D"
TextColor="Black"
Command="{Binding SaveYellowCommand}" />
<Button
Grid.Row="1"
Grid.Column="0"
Text="Rot&#10;Schlecht"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#E53935"
TextColor="White"
Command="{Binding SaveRedCommand}" />
<Button
Grid.Row="1"
Grid.Column="1"
Text="Grau&#10;Totalausfall"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#757575"
TextColor="White"
Command="{Binding SaveGrayCommand}" />
</Grid>
</VerticalStackLayout>
</ScrollView>
</ContentPage>