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.
43 lines
1.9 KiB
43 lines
1.9 KiB
<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">
|
|
<Label Text="Your Name" FontSize="Medium" />
|
|
<Entry x:Name="ReporterNameEntry" Placeholder="Enter your name" />
|
|
|
|
<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>
|
|
|
|
<Label Text="Description" FontSize="Medium" />
|
|
<Editor x:Name="DescriptionEditor" Placeholder="Enter incident details" AutoSize="TextChanges" />
|
|
|
|
<Label Text="Address" FontSize="Medium" />
|
|
<Entry x:Name="LocationEntry" IsReadOnly="False" />
|
|
|
|
<Label Text="Attachment (Optional)" FontSize="Medium" />
|
|
<Button Text="Choose File" Clicked="OnChooseFileClicked" />
|
|
<Label x:Name="AttachmentLabel" Text="No file selected" FontSize="Small" TextColor="Gray" />
|
|
|
|
<Button Text="Submit Report" Clicked="OnSubmitReportClicked" />
|
|
<ActivityIndicator x:Name="LoadingIndicator"
|
|
IsRunning="True"
|
|
IsVisible="True"
|
|
VerticalOptions="Center"
|
|
HorizontalOptions="Center"
|
|
Color="Blue"/>
|
|
</StackLayout>
|
|
</ScrollView>
|
|
|
|
</ContentPage>
|
|
|