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.
44 lines
1.8 KiB
44 lines
1.8 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.AuthorityDashboardPage"
|
||
|
Title="Authority Dashboard">
|
||
|
|
||
|
<StackLayout Padding="20">
|
||
|
<!-- Dashboard Header -->
|
||
|
<Label Text="Authority Dashboard"
|
||
|
FontSize="Large"
|
||
|
HorizontalOptions="Center"
|
||
|
FontAttributes="Bold" />
|
||
|
|
||
|
<!-- Section: Reports List -->
|
||
|
<Label Text="Reports Submitted by Users"
|
||
|
FontSize="Medium"
|
||
|
FontAttributes="Bold"
|
||
|
Margin="0,20,0,10" />
|
||
|
<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='Reported on: {0:MMM dd, yyyy HH:mm}'}"
|
||
|
FontSize="Small" />
|
||
|
<Label Text="{Binding Description}"
|
||
|
FontSize="Small" />
|
||
|
<Button Text="Mark as Solved"
|
||
|
|
||
|
CommandParameter="{Binding .}" />
|
||
|
</StackLayout>
|
||
|
</ViewCell>
|
||
|
</DataTemplate>
|
||
|
</ListView.ItemTemplate>
|
||
|
</ListView>
|
||
|
</StackLayout>
|
||
|
</ContentPage>
|