small bug fixes
This commit is contained in:
+11
-10
@@ -3,9 +3,10 @@
|
||||
x:Name="RootPage"
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:loc="clr-namespace:cfs_tracker.Helpers"
|
||||
xmlns:viewModels="clr-namespace:cfs_tracker.ViewModels"
|
||||
x:DataType="viewModels:DayViewModel"
|
||||
Title="Tag"
|
||||
Title="{loc:Translate Tab_Day}"
|
||||
BackgroundColor="{DynamicResource AppBackground}">
|
||||
|
||||
<ScrollView>
|
||||
@@ -30,11 +31,11 @@
|
||||
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
ColumnSpacing="12">
|
||||
<Button Text="Heute"
|
||||
<Button Text="{loc:Translate Common_Today}"
|
||||
Style="{StaticResource PrimaryButtonStyle}"
|
||||
Command="{Binding TodayCommand}" />
|
||||
<Button Grid.Column="1"
|
||||
Text="Export"
|
||||
Text="{loc:Translate Common_Export}"
|
||||
Style="{StaticResource PrimaryButtonStyle}"
|
||||
Command="{Binding ExportPdfCommand}" />
|
||||
</Grid>
|
||||
@@ -81,7 +82,7 @@
|
||||
Style="{StaticResource PrimaryButtonStyle}"
|
||||
IsEnabled="{Binding CanAddEntry}" />
|
||||
|
||||
<Label Text="Noch keine Einträge vorhanden."
|
||||
<Label Text="{loc:Translate DayPage_NoEntries}"
|
||||
IsVisible="{Binding HasNoEntries}"
|
||||
HorizontalTextAlignment="Center"
|
||||
TextColor="{DynamicResource TextMuted}" />
|
||||
@@ -109,13 +110,13 @@
|
||||
</VerticalStackLayout>
|
||||
|
||||
<Button Grid.Column="1"
|
||||
Text="Bearbeiten"
|
||||
Text="{loc:Translate Common_Edit}"
|
||||
Style="{StaticResource PrimaryButtonStyle}"
|
||||
Command="{Binding Source={RelativeSource AncestorType={x:Type viewModels:DayViewModel}}, Path=EditEntryCommand, x:DataType='viewModels:DayViewModel'}"
|
||||
CommandParameter="{Binding .}" />
|
||||
|
||||
<Button Grid.Column="2"
|
||||
Text="Löschen"
|
||||
Text="{loc:Translate Common_Delete}"
|
||||
Style="{StaticResource SecondaryButtonStyle}"
|
||||
Command="{Binding Source={RelativeSource AncestorType={x:Type viewModels:DayViewModel}}, Path=DeleteEntryCommand, x:DataType='viewModels:DayViewModel'}"
|
||||
CommandParameter="{Binding .}" />
|
||||
@@ -137,13 +138,13 @@
|
||||
|
||||
<VerticalStackLayout IsVisible="{Binding IsExpanded}"
|
||||
Spacing="6">
|
||||
<Label Text="{Binding ActivityText, StringFormat='Tätigkeit: {0}'}"
|
||||
<Label Text="{Binding ActivitySummaryText}"
|
||||
IsVisible="{Binding HasActivity}"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
<Label Text="{Binding DurationText, StringFormat='Dauer: {0}'}"
|
||||
<Label Text="{Binding DurationSummaryText}"
|
||||
IsVisible="{Binding HasDuration}"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
<Label Text="{Binding SymptomsText, StringFormat='Symptome: {0}'}"
|
||||
<Label Text="{Binding SymptomsSummaryText}"
|
||||
IsVisible="{Binding HasSymptoms}"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
</VerticalStackLayout>
|
||||
@@ -154,4 +155,4 @@
|
||||
</CollectionView>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
</ContentPage>
|
||||
|
||||
Reference in New Issue
Block a user