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.IncidentReportPage"
|
|
|
|
Title="Report Incident">
|
|
|
|
|
|
|
|
<ScrollView>
|
|
|
|
<StackLayout Padding="20" Spacing="15">
|
|
|
|
<!-- Reporter Name -->
|
|
|
|
<Label Text="Your Name" FontSize="Medium" />
|
|
|
|
<Entry x:Name="ReporterNameEntry" Placeholder="Enter your name" />
|
|
|
|
|
|
|
|
<!-- Incident Type -->
|
|
|
|
<Label Text="Incident Type" FontSize="Medium" />
|
|
|
|
<Picker x:Name="IncidentTypePicker">
|
|
|
|
<Picker.ItemsSource>
|
|
|
|
<x:Array Type="{x:Type x:String}">
|
|
|
|
<x:String>Accident</x:String>
|
|
|
|
<x:String>Crime</x:String>
|
|
|
|
<x:String>Fire</x:String>
|
|
|
|
<x:String>Other</x:String>
|
|
|
|
</x:Array>
|
|
|
|
</Picker.ItemsSource>
|
|
|
|
</Picker>
|
|
|
|
|
|
|
|
<!-- Description -->
|
|
|
|
<Label Text="Description" FontSize="Medium" />
|
|
|
|
<Editor x:Name="DescriptionEditor" Placeholder="Enter incident details" AutoSize="TextChanges" />
|
|
|
|
|
|
|
|
<!-- Location -->
|
|
|
|
<Label Text="Location (Auto-filled)" FontSize="Medium" />
|
|
|
|
<Entry x:Name="LocationEntry" IsReadOnly="True" />
|
|
|
|
|
|
|
|
<!-- Attachment -->
|
|
|
|
<Label Text="Attachment (Optional)" FontSize="Medium" />
|
|
|
|
<Button Text="Choose File" Clicked="OnChooseFileClicked" />
|
|
|
|
|
|
|
|
<!-- Submit Button -->
|
|
|
|
<Button Text="Submit Report" Clicked="OnSubmitReportClicked" />
|
|
|
|
</StackLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</ContentPage>
|