StoreRequiConfirmationPage.xaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <mobile:MobilePage xmlns:local="clr-namespace:PRS.Mobile"
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  6. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  7. x:Class="PRS.Mobile.StoreRequiConfirmationPage"
  8. Title="Confirm Details">
  9. <mobile:MobilePage.PrimaryMenu>
  10. <ImageButton Source="save" Clicked="SaveBtn_Clicked"/>
  11. </mobile:MobilePage.PrimaryMenu>
  12. <mobile:MobilePage.PageContent>
  13. <ScrollView>
  14. <StackLayout Orientation="Vertical" VerticalOptions="StartAndExpand" Padding="5">
  15. <!--Row 0 Title-->
  16. <Frame HasShadow="False" BorderColor="Gray" Padding="10" >
  17. <material:MaterialLabel x:Name="titleLbl" Text="" TypeScale="H6" HorizontalTextAlignment="Center" Margin="5" HorizontalOptions="Center"/>
  18. </Frame>
  19. <!--Row 1 Requi Status-->
  20. <material:MaterialLabel x:Name="requiStatusLbl" Text="Requi Status" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" IsVisible="false"/>
  21. <Frame x:Name="requiStatusFrame" HasShadow="False" BorderColor="Gray" Padding="10" IsVisible="false">
  22. <Grid>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="*"/>
  25. <ColumnDefinition Width="*"/>
  26. </Grid.ColumnDefinitions>
  27. <RadioButton Grid.Column="0" Content="For Delivery" FontSize="Medium" FontAttributes="Bold" TextColor="PaleVioletRed"
  28. x:Name="forDeliveryRb" HorizontalOptions="Start" VerticalOptions="Center"/>
  29. <RadioButton Grid.Column="1" Content="Taken By Me Now" FontSize="Medium" FontAttributes="Bold" TextColor="PaleVioletRed"
  30. x:Name="takenNowRb" HorizontalOptions="Start" VerticalOptions="Center"/>
  31. </Grid>
  32. </Frame>
  33. <!--Row 2 Job-->
  34. <material:MaterialLabel Text="Job" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5"/>
  35. <Frame HasShadow="False" Padding="10" BorderColor="Red" x:Name="jobFrame">
  36. <Grid>
  37. <Grid.ColumnDefinitions>
  38. <ColumnDefinition Width="*"/>
  39. <ColumnDefinition Width="auto"/>
  40. </Grid.ColumnDefinitions>
  41. <Label Grid.Column="0" x:Name="jobLbl" LineBreakMode="WordWrap" VerticalOptions="Center" FontSize="Medium" FontAttributes="Bold"/>
  42. <Button Grid.Column="1" x:Name="selectJobBtn" Clicked="SelectJobBtn_Clicked" Text="Select" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  43. </Grid>
  44. </Frame>
  45. <!--Row 3 Notes-->
  46. <material:MaterialLabel Text="Notes" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" x:Name="notesTitleLbl"/>
  47. <Frame HasShadow="False" BorderColor="Gray" Padding="10" >
  48. <Editor x:Name="notesEdt" AutoSize="TextChanges" Placeholder="Edit"/>
  49. </Frame>
  50. <!--Row 4 Boxes-->
  51. <material:MaterialLabel x:Name="boxesLbl" Text="No. of boxes / packages" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" IsVisible="false"/>
  52. <Frame HasShadow="False" BorderColor="Gray" Padding="10" x:Name="boxesQtyFrame" IsVisible="false">
  53. <Grid>
  54. <Grid.ColumnDefinitions>
  55. <ColumnDefinition Width="60"/>
  56. <!--col 0-->
  57. <ColumnDefinition Width="*"/>
  58. <!--col 2-->
  59. <ColumnDefinition Width="60"/>
  60. <!--col 3-->
  61. </Grid.ColumnDefinitions>
  62. <!--col 0-->
  63. <Button Grid.Column="0"
  64. x:Name="reduceQtyBtn" Text="-" Clicked="ReduceQtyBtn_Clicked"
  65. FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" VerticalOptions="Center" Margin="5,0,0,0" CornerRadius="5"/>
  66. <!--col 1-->
  67. <Label Grid.Column="1"
  68. x:Name="boxQtyLbl"
  69. FontSize="Large" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" VerticalOptions="Center"/>
  70. <!--col 2-->
  71. <Button Grid.Column="2"
  72. x:Name="increaseQtyBtn" Text="+" Clicked="IncreaseQtyBtn_Clicked"
  73. FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" VerticalOptions="Center" Margin="0,0,5,0" CornerRadius="5"/>
  74. </Grid>
  75. </Frame>
  76. <!--Row 5 Photos-->
  77. <material:MaterialLabel x:Name="photosLbl" Text="Photos" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" IsVisible="false"/>
  78. <Frame HasShadow="False" Padding="10" BorderColor="Red" x:Name="photosFrame" IsVisible="false">
  79. <StackLayout Orientation="Vertical">
  80. <Label Text="Tap on photo to view / delete" HorizontalOptions="Center" VerticalOptions="Center"/>
  81. <ScrollView Orientation="Horizontal" x:Name="ImageScroller" IsVisible="false">
  82. <StackLayout x:Name="images" Orientation="Horizontal" HeightRequest="150" HorizontalOptions="StartAndExpand" VerticalOptions="Fill"/>
  83. </ScrollView>
  84. <Grid>
  85. <Grid.ColumnDefinitions>
  86. <ColumnDefinition Width="*"/>
  87. <ColumnDefinition Width="*"/>
  88. </Grid.ColumnDefinitions>
  89. <Button x:Name="TakePhoto" Grid.Column="0" Text="Camera" Clicked="TakePhoto_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  90. <Button x:Name="ChooseImage" Grid.Column="1" Text="Library" Clicked="ChooseImage_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  91. </Grid>
  92. </StackLayout>
  93. </Frame>
  94. <!--Row 6 Requested By -->
  95. <!--<material:MaterialLabel x:Name="requestedByTitleLbl" Text="Requested By" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5"/>
  96. <Frame HasShadow="False" Padding="10" BorderColor="Gray" x:Name="requestedByFrame">
  97. <Label Grid.Row="1" Grid.Column="0" x:Name="requestedByLbl" LineBreakMode="WordWrap" VerticalOptions="Center" FontSize="Medium" FontAttributes="Bold"/>
  98. </Frame>-->
  99. <!--Row 7 Due-->
  100. <material:MaterialLabel Text="Due (tap to select)" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" x:Name="dueLbl"/>
  101. <Frame HasShadow="False" Padding="10" BorderColor="Gray" x:Name="dueFrame">
  102. <DatePicker x:Name="dueDatePckr" TextColor="DarkGray" DateSelected="DueDatePckr_DateSelected" IsEnabled="False"/>
  103. </Frame>
  104. </StackLayout>
  105. </ScrollView>
  106. </mobile:MobilePage.PageContent>
  107. </mobile:MobilePage>