Guilhermes
This commit is contained in:
33
GuilhermesApp/Pages/FormsHistoryPage.xaml
Normal file
33
GuilhermesApp/Pages/FormsHistoryPage.xaml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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"
|
||||
x:Class="GuilhermesApp.Pages.FormsHistoryPage"
|
||||
Shell.NavBarIsVisible="False"
|
||||
xmlns:local="clr-namespace:GuilhermesApp.Pages"
|
||||
Title="O Meu Histórico">
|
||||
|
||||
<VerticalStackLayout Padding="20" Spacing="15">
|
||||
|
||||
<Label Text="Registos Anteriores" FontSize="24" FontAttributes="Bold" HorizontalOptions="Center" />
|
||||
|
||||
<ActivityIndicator x:Name="LoadingIndicator" IsRunning="True" Color="Blue" HorizontalOptions="Center" />
|
||||
|
||||
<Label x:Name="EmptyLabel" Text="Ainda não tens formulários submetidos." IsVisible="False" HorizontalOptions="Center" TextColor="Black" />
|
||||
|
||||
<CollectionView x:Name="FormsCollection" IsVisible="False" SelectionMode="Single" SelectionChanged="OnFormSelected">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="local:FormResult">
|
||||
<Border Margin="0,5" Padding="15" StrokeShape="RoundRectangle 10" BackgroundColor="#F3F4F6" Stroke="Transparent">
|
||||
<VerticalStackLayout Spacing="5">
|
||||
<Label Text="{Binding Data}" FontAttributes="Bold" FontSize="16" TextColor="Black" />
|
||||
<Label Text="{Binding Humor, StringFormat='Humor: {0}'}" TextColor="Black"/>
|
||||
<Label Text="{Binding Stress, StringFormat='Nível de Stress: {0}/10'}" TextColor="Black"/>
|
||||
<Label Text="Clica para ver tudo..." FontSize="12" TextColor="Black" Margin="0,5,0,0" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user