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.
38 lines
1.9 KiB
38 lines
1.9 KiB
6 months ago
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||
|
x:Class="Justice.Views.AuthorityReportsPage"
|
||
|
Title="Authority Reports">
|
||
|
|
||
|
<StackLayout Padding="20">
|
||
|
<Label Text="Submitted Reports" FontSize="Large" HorizontalOptions="Center" />
|
||
|
|
||
|
<!-- List of Reports -->
|
||
|
<ListView x:Name="ReportsListView" HasUnevenRows="True">
|
||
|
<ListView.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<ViewCell>
|
||
|
<StackLayout Padding="10">
|
||
|
<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" />
|
||
|
|
||
|
<!-- Attachment Section -->
|
||
|
<Button Text="View Attachment"
|
||
|
IsVisible="{Binding AttachmentPath, Converter={StaticResource NullToVisibilityConverter}}"
|
||
|
Clicked="OnViewAttachmentClicked"
|
||
|
CommandParameter="{Binding .}" CornerRadius="80" Margin="5"/>
|
||
|
|
||
|
<!-- Update Status Button -->
|
||
|
<Button Text="Mark as Resolved"
|
||
|
Clicked="OnUpdateStatusClicked"
|
||
|
CommandParameter="{Binding .}" CornerRadius="80" />
|
||
|
</StackLayout>
|
||
|
</ViewCell>
|
||
|
</DataTemplate>
|
||
|
</ListView.ItemTemplate>
|
||
|
</ListView>
|
||
|
</StackLayout>
|
||
|
</ContentPage>
|