You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
x:Class="Justice.Views.ViewReportsPage"
|
|
|
|
Title="View Reports">
|
|
|
|
|
|
|
|
<StackLayout Padding="20">
|
|
|
|
<Label Text="Submitted Reports" FontSize="Large" HorizontalOptions="Center" />
|
|
|
|
<!-- List of Reports -->
|
|
|
|
<ListView x:Name="ReportsListView"
|
|
|
|
HasUnevenRows="True"
|
|
|
|
ItemSelected="OnReportSelected">
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<ViewCell>
|
|
|
|
<StackLayout Padding="10" Orientation="Horizontal">
|
|
|
|
<StackLayout VerticalOptions="CenterAndExpand" HorizontalOptions="FillAndExpand">
|
|
|
|
<Label Text="{Binding IncidentType}" FontSize="Medium" FontAttributes="Bold" />
|
|
|
|
<Label Text="{Binding Address}" FontSize="Small" TextColor="Gray" />
|
|
|
|
<Label Text="{Binding DateTime, StringFormat='Submitted on: {0:MMM dd, yyyy HH:mm}'}"
|
|
|
|
FontSize="Small" />
|
|
|
|
<Label Text="{Binding Description}" FontSize="Small" />
|
|
|
|
</StackLayout>
|
|
|
|
<Button x:Name="DeleteName" Text="Delete"
|
|
|
|
Clicked="OnDeleteReportClicked"
|
|
|
|
CommandParameter="{Binding .}" HeightRequest="10" IsVisible="True"/>
|
|
|
|
</StackLayout>
|
|
|
|
</ViewCell>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
|
|
|
</ListView>
|
|
|
|
</StackLayout>
|
|
|
|
</ContentPage>
|