First version
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
<?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 Gut"
|
||||
FontSize="22"
|
||||
FontAttributes="Bold"
|
||||
HeightRequest="120"
|
||||
BackgroundColor="#4CAF50"
|
||||
TextColor="White"
|
||||
Command="{Binding SaveGreenCommand}" />
|
||||
|
||||
<Button
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Text="Gelb So lala"
|
||||
FontSize="22"
|
||||
FontAttributes="Bold"
|
||||
HeightRequest="120"
|
||||
BackgroundColor="#FBC02D"
|
||||
TextColor="Black"
|
||||
Command="{Binding SaveYellowCommand}" />
|
||||
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Text="Rot Schlecht"
|
||||
FontSize="22"
|
||||
FontAttributes="Bold"
|
||||
HeightRequest="120"
|
||||
BackgroundColor="#E53935"
|
||||
TextColor="White"
|
||||
Command="{Binding SaveRedCommand}" />
|
||||
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Text="Grau Totalausfall"
|
||||
FontSize="22"
|
||||
FontAttributes="Bold"
|
||||
HeightRequest="120"
|
||||
BackgroundColor="#757575"
|
||||
TextColor="White"
|
||||
Command="{Binding SaveGrayCommand}" />
|
||||
</Grid>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user