Some checks failed
		
		
	
	Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
				
			- Modify planned payment - minor bug fixes
		
			
				
	
	
		
			84 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <VerticalStackLayout x:Class="WheresMyMoney.Maui.PlannedPaymentContent"
 | |
|                      xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
 | |
|                      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
 | |
|                      xmlns:local="using:WheresMyMoney.Maui" x:DataType="local:FullPlannedPaymentViewModel">
 | |
|     <!-- Separator -->
 | |
|     <BoxView HeightRequest="1"
 | |
|              BackgroundColor="Gray"
 | |
|              Margin="0,10,0,10" />
 | |
| 
 | |
|     <!-- Name -->
 | |
|     <Label Text="{Binding Name}"
 | |
|            FontSize="20"
 | |
|            FontAttributes="None"
 | |
|            Margin="0,5,0,5" />
 | |
| 
 | |
|     <VerticalStackLayout>
 | |
|         <!-- Amount -->
 | |
|         <Label Text="{Binding Amount}"
 | |
|                FontSize="20"
 | |
|                FontAttributes="Bold"
 | |
|                Margin="0,5,0,5" HorizontalTextAlignment="End" />
 | |
| 
 | |
|         <!-- Subscription Indicator -->
 | |
|         <Label Text="Płatność jednorazowa"
 | |
|                FontSize="20"
 | |
|                FontAttributes="None"
 | |
|                Margin="0,5,0,5">
 | |
|             <Label.Triggers>
 | |
|                 <DataTrigger TargetType="Label" Binding="{Binding Path=IsSubscription}" Value="True">
 | |
|                     <Setter Property="Text" Value="Subskrybcja" />
 | |
|                 </DataTrigger>
 | |
|             </Label.Triggers>
 | |
|         </Label>
 | |
| 
 | |
|         <!-- Start Date -->
 | |
|         <Grid ColumnDefinitions="*,Auto">
 | |
|             <Label Grid.Column="0" Text="dnia"
 | |
|                    FontSize="16"
 | |
|                    FontAttributes="None"
 | |
|                    TextColor="Gray"
 | |
|                    Margin="0,5,0,0">
 | |
|                 <Label.Triggers>
 | |
|                     <DataTrigger TargetType="Label" Binding="{Binding Path=IsSubscription}" Value="True">
 | |
|                         <Setter Property="Text" Value="od" />
 | |
|                     </DataTrigger>
 | |
|                 </Label.Triggers>
 | |
|             </Label>
 | |
|             <Label Grid.Column="1" Text="{Binding DateStart}"
 | |
|                    FontSize="20"
 | |
|                    FontAttributes="None"
 | |
|                    Margin="0,0,0,10" HorizontalTextAlignment="End" />
 | |
|         </Grid>
 | |
| 
 | |
|         <!-- End Date -->
 | |
|         <Grid ColumnDefinitions="*,Auto" IsVisible="{Binding ShowDateEnd}">
 | |
|             <Label Grid.Column="0" Text="do"
 | |
|                    FontSize="16"
 | |
|                    FontAttributes="None"
 | |
|                    TextColor="Gray"
 | |
|                    Margin="0,5,0,0" />
 | |
|             <Label Grid.Column="1" Text="{Binding DateEnd}"
 | |
|                    FontSize="20"
 | |
|                    FontAttributes="None"
 | |
|                    Margin="0,0,0,10" HorizontalTextAlignment="End" />
 | |
|         </Grid>
 | |
| 
 | |
|         <!-- Subscription Details -->
 | |
|         <HorizontalStackLayout IsVisible="False"
 | |
|                                Margin="0,10,0,0">
 | |
|             <HorizontalStackLayout.Triggers>
 | |
|                 <DataTrigger TargetType="HorizontalStackLayout"
 | |
|                              Binding="{Binding Path=IsSubscription}"
 | |
|                              Value="True">
 | |
|                     <Setter Property="IsVisible" Value="True" />
 | |
|                 </DataTrigger>
 | |
|             </HorizontalStackLayout.Triggers>
 | |
|             <Label Text="Powtarzaj co"
 | |
|                    Margin="0,0,5,0" />
 | |
|             <Label Text="{Binding Reoccurences}"
 | |
|                    Margin="0,0,5,0" />
 | |
|             <Label Text="{Binding ReoccurenceType}" />
 | |
|         </HorizontalStackLayout>
 | |
|     </VerticalStackLayout>
 | |
| </VerticalStackLayout> |