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.

107 lines
4.2 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="GMCabsDriverAssistantSolution.Views.AcceptBookingPage"
  5. Title="{Binding Title}">
  6. <ContentPage.Content>
  7. <StackLayout BackgroundColor="#DCDCDC">
  8. <StackLayout
  9. IsVisible="{Binding IsProcessing}"
  10. VerticalOptions="CenterAndExpand">
  11. <Label Text="Processing"
  12. TextColor="Black"
  13. FontSize="25"
  14. HorizontalTextAlignment="Center"
  15. HorizontalOptions="CenterAndExpand" />
  16. <Label Text="Please Wait"
  17. TextColor="Black"
  18. FontSize="24"
  19. Margin="0,15,0,20"
  20. HorizontalTextAlignment="Center"
  21. HorizontalOptions="CenterAndExpand" />
  22. <ActivityIndicator IsRunning="true" />
  23. </StackLayout>
  24. <StackLayout
  25. VerticalOptions="Center"
  26. IsVisible="{Binding IsBookingConfirmed}">
  27. <Label
  28. Text="Booking Awarded"
  29. TextColor="Black"
  30. FontSize="26"
  31. Margin="0,40,0,0"
  32. HorizontalTextAlignment="Center"
  33. HorizontalOptions="CenterAndExpand" />
  34. <Image
  35. Source="righttic.png"
  36. HeightRequest="100"/>
  37. </StackLayout>
  38. <StackLayout
  39. VerticalOptions="Center"
  40. IsVisible="{Binding IsBookingConfirmedAndOnDemand}">
  41. <Label
  42. Text="Head to"
  43. TextColor="Black"
  44. FontSize="20"
  45. HorizontalTextAlignment="Center"
  46. HorizontalOptions="CenterAndExpand" />
  47. <Label
  48. Text="Please confirm on terminal ASAP to keep this booking"
  49. TextColor="Black"
  50. Margin="40,0,40,0"
  51. FontSize="26"
  52. HorizontalTextAlignment="Center"
  53. HorizontalOptions="CenterAndExpand"/>
  54. <Label
  55. Text="{Binding TimerSeconds}"
  56. TextColor="Black"
  57. FontAttributes="Bold"
  58. Margin="0,20,0,0"
  59. FontSize="30"
  60. HorizontalOptions="CenterAndExpand"/>
  61. <Label
  62. Text="Before Automatic Cancellation"
  63. TextColor="Black"
  64. FontSize="20"
  65. Margin="0,20,0,0"
  66. HorizontalOptions="CenterAndExpand" />
  67. </StackLayout>
  68. <StackLayout VerticalOptions="EndAndExpand"
  69. IsVisible="{Binding IsBookingConfirmed}">
  70. <Button
  71. Margin="40,0,40,15"
  72. Text="OK"
  73. Clicked="OnAcceptOkClicked"
  74. FontSize="20"
  75. />
  76. </StackLayout>
  77. <StackLayout
  78. IsVisible="{Binding IsBookingUnavailable}">
  79. <Label
  80. Text="{Binding ErrorMessage}"
  81. TextColor="Black"
  82. FontAttributes="Bold"
  83. FontSize="24"
  84. Margin="40,100,40,0"
  85. HorizontalTextAlignment="Center"
  86. HorizontalOptions="CenterAndExpand" />
  87. <Label
  88. Text="This booking is no longer available"
  89. HorizontalTextAlignment="Center"
  90. TextColor="Black"
  91. Margin="40,60,40,0"
  92. FontSize="25"/>
  93. <Button
  94. VerticalOptions="EndAndExpand"
  95. Margin="40,140,40,0"
  96. Text="OK"
  97. FontSize="20"
  98. Clicked="OnUnavailableOkClicked"/>
  99. </StackLayout>
  100. </StackLayout>
  101. </ContentPage.Content>
  102. </ContentPage>