d85f2e0fb3
Bootstraper läd jetzt die farbeinstellung sofort und nicht nachträglich cleanup and rework PDF switch to HTML export fix Colorsystem Farben für knöpfe hinzugefügt als anpassung button color button color primary and secondary change
157 lines
7.1 KiB
XML
157 lines
7.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:viewModels="clr-namespace:cfs_tracker.ViewModels"
|
|
x:DataType="viewModels:QuickEntryViewModel"
|
|
x:Class="cfs_tracker.Views.QuickEntryPage"
|
|
Title="Eintrag"
|
|
BackgroundColor="{DynamicResource AppBackground}">
|
|
|
|
<ScrollView>
|
|
<VerticalStackLayout Padding="16" Spacing="16">
|
|
|
|
<Label Text="{Binding SelectedDateText}"
|
|
FontSize="20"
|
|
FontAttributes="Bold"
|
|
HorizontalTextAlignment="Center"
|
|
TextColor="{DynamicResource TextPrimary}" />
|
|
|
|
<Label Text="{Binding ModeText}"
|
|
IsVisible="{Binding IsFutureDate}"
|
|
HorizontalTextAlignment="Center"
|
|
TextColor="IndianRed" />
|
|
|
|
<Border Padding="12"
|
|
Stroke="{DynamicResource Border}"
|
|
BackgroundColor="{DynamicResource SurfaceBackground}"
|
|
StrokeShape="RoundRectangle 14"
|
|
IsVisible="{Binding IsPastDate}">
|
|
<VerticalStackLayout Spacing="8">
|
|
<Label Text="Nachtrag"
|
|
FontAttributes="Bold"
|
|
TextColor="{DynamicResource TextPrimary}" />
|
|
<Picker Title="Tageszeit"
|
|
ItemsSource="{Binding Parts}"
|
|
ItemDisplayBinding="{Binding Name}"
|
|
SelectedItem="{Binding SelectedPart}" />
|
|
</VerticalStackLayout>
|
|
</Border>
|
|
|
|
<Border Padding="12"
|
|
Stroke="{DynamicResource Border}"
|
|
BackgroundColor="{DynamicResource SurfaceBackground}"
|
|
StrokeShape="RoundRectangle 14">
|
|
<VerticalStackLayout Spacing="8">
|
|
<Label Text="Tätigkeit"
|
|
FontAttributes="Bold"
|
|
TextColor="{DynamicResource TextPrimary}" />
|
|
<Picker Title="Tätigkeit"
|
|
ItemsSource="{Binding Activities}"
|
|
ItemDisplayBinding="{Binding Name}"
|
|
SelectedItem="{Binding SelectedActivity}" />
|
|
</VerticalStackLayout>
|
|
</Border>
|
|
|
|
<Border Padding="12"
|
|
Stroke="{DynamicResource Border}"
|
|
BackgroundColor="{DynamicResource SurfaceBackground}"
|
|
StrokeShape="RoundRectangle 14">
|
|
<VerticalStackLayout Spacing="8">
|
|
<Label Text="Symptome"
|
|
FontAttributes="Bold"
|
|
TextColor="{DynamicResource TextPrimary}" />
|
|
|
|
<VerticalStackLayout BindableLayout.ItemsSource="{Binding Symptoms}"
|
|
Spacing="6">
|
|
<BindableLayout.ItemTemplate>
|
|
<DataTemplate x:DataType="viewModels:SelectableSymptomItemViewModel">
|
|
<Grid ColumnDefinitions="Auto,*"
|
|
ColumnSpacing="10"
|
|
Padding="0,4">
|
|
<CheckBox IsChecked="{Binding IsSelected}" />
|
|
<Label Grid.Column="1"
|
|
Text="{Binding Name}"
|
|
VerticalOptions="Center"
|
|
TextColor="{DynamicResource TextPrimary}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</BindableLayout.ItemTemplate>
|
|
</VerticalStackLayout>
|
|
</VerticalStackLayout>
|
|
</Border>
|
|
|
|
<Grid ColumnDefinitions="*,*"
|
|
RowDefinitions="Auto,Auto"
|
|
ColumnSpacing="12"
|
|
RowSpacing="12">
|
|
<Button Grid.Row="0"
|
|
Grid.Column="0"
|
|
Text="{Binding GreenStatusText}"
|
|
FontSize="22"
|
|
FontAttributes="Bold"
|
|
HeightRequest="110"
|
|
BackgroundColor="{Binding GreenStateColor}"
|
|
TextColor="White"
|
|
Command="{Binding SaveGreenCommand}"
|
|
IsEnabled="{Binding CanSave}" />
|
|
|
|
<Button Grid.Row="0"
|
|
Grid.Column="1"
|
|
Text="{Binding YellowStatusText}"
|
|
FontSize="22"
|
|
FontAttributes="Bold"
|
|
HeightRequest="110"
|
|
BackgroundColor="{Binding YellowStateColor}"
|
|
TextColor="Black"
|
|
Command="{Binding SaveYellowCommand}"
|
|
IsEnabled="{Binding CanSave}" />
|
|
|
|
<Button Grid.Row="1"
|
|
Grid.Column="0"
|
|
Text="{Binding RedStatusText}"
|
|
FontSize="22"
|
|
FontAttributes="Bold"
|
|
HeightRequest="110"
|
|
BackgroundColor="{Binding RedStateColor}"
|
|
TextColor="White"
|
|
Command="{Binding SaveRedCommand}"
|
|
IsEnabled="{Binding CanSave}" />
|
|
|
|
<Button Grid.Row="1"
|
|
Grid.Column="1"
|
|
Text="{Binding GrayStatusText}"
|
|
FontSize="22"
|
|
FontAttributes="Bold"
|
|
HeightRequest="110"
|
|
BackgroundColor="{Binding GrayStateColor}"
|
|
TextColor="White"
|
|
Command="{Binding SaveGrayCommand}"
|
|
IsEnabled="{Binding CanSave}" />
|
|
</Grid>
|
|
|
|
<Border Padding="12"
|
|
IsVisible="{Binding ShowSaveButton}"
|
|
Stroke="{DynamicResource Border}"
|
|
BackgroundColor="{DynamicResource SurfaceBackground}"
|
|
StrokeShape="RoundRectangle 14">
|
|
<VerticalStackLayout Spacing="10">
|
|
<Label Text="{Binding SelectedStateSummaryText}"
|
|
HorizontalTextAlignment="Center"
|
|
TextColor="{DynamicResource TextPrimary}" />
|
|
|
|
<Button Text="Eintrag speichern"
|
|
Command="{Binding SaveCommand}"
|
|
IsEnabled="{Binding CanExplicitSave}"
|
|
Style="{StaticResource PrimaryButtonStyle}"
|
|
HorizontalOptions="Fill" />
|
|
</VerticalStackLayout>
|
|
</Border>
|
|
|
|
<Button Text="Abbrechen"
|
|
Command="{Binding CancelCommand}"
|
|
Style="{StaticResource SecondaryButtonStyle}"
|
|
HorizontalOptions="Fill" />
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
</ContentPage> |