AddEditQualification.xaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <timesheets:BasePage xmlns:timesheets="clr-namespace:comal.timesheets" xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:xforms="clr-namespace:Syncfusion.SfPicker.XForms;assembly=Syncfusion.SfPicker.XForms"
  4. x:Class="comal.timesheets.AddEditQualification">
  5. <NavigationPage.TitleView>
  6. <Grid Margin="0" Padding="0">
  7. <Grid.ColumnDefinitions>
  8. <ColumnDefinition Width="*"/>
  9. <ColumnDefinition Width="*"/>
  10. <ColumnDefinition Width="*"/>
  11. </Grid.ColumnDefinitions>
  12. <Button Grid.Column="0" HorizontalOptions="Start" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  13. Text="Exit" Clicked="ExitBtn_Clicked"/>
  14. <Label Grid.Column="1" Text="Edit Qualification" VerticalOptions="Center" x:Name="titleLbl"
  15. HorizontalOptions="Center" HorizontalTextAlignment="Center" TextColor="White" FontSize="Medium" FontAttributes="Bold"/>
  16. <Button Grid.Column="2" HorizontalOptions="End" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  17. Text="Save" Clicked="Save_Clicked"/>
  18. </Grid>
  19. </NavigationPage.TitleView>
  20. <timesheets:BasePage.PageContent>
  21. <ScrollView>
  22. <StackLayout Padding="10">
  23. <Label Text="Tap inside boxes to make changes as appropriate" VerticalOptions="Center" HorizontalOptions="Center" LineBreakMode="WordWrap"
  24. FontSize="Medium"/>
  25. <!--Row 0 Description-->
  26. <Label Text="Qualification:" FontSize="Medium" FontAttributes="Bold" Margin="5" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
  27. <Frame x:Name="descriptionFrame" Padding="10" BorderColor="#15C7C1" CornerRadius="5">
  28. <Picker x:Name="qualificationPicker" HorizontalOptions="FillAndExpand" VerticalOptions="Center" SelectedIndexChanged="QualificationPicker_IndexChanged"
  29. Title="Select an option"/>
  30. </Frame>
  31. <!--Row 1 Qualified-->
  32. <Label Text="Qualified:" FontAttributes="Bold" FontSize="Medium" Margin="5" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
  33. <Frame Padding="10" BorderColor="#15C7C1" CornerRadius="5">
  34. <DatePicker x:Name="qualifiedDatePicker" HorizontalOptions="FillAndExpand" VerticalOptions="Center" DateSelected="QualifiedDatePicker_Selected"
  35. />
  36. </Frame>
  37. <!--Row 2 Renewal-->
  38. <Label Text="Renewal:" FontAttributes="Bold" FontSize="Medium" Margin="5" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
  39. <Frame Padding="10" BorderColor="#15C7C1" CornerRadius="5">
  40. <Label x:Name="renewalLbl" HorizontalOptions="Start" VerticalOptions="Center" FontSize="Medium"/>
  41. </Frame>
  42. <!--Row 3 Expiry-->
  43. <Label Text="Expiry:" FontAttributes="Bold" FontSize="Medium" Margin="5" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
  44. <Frame Padding="10" BorderColor="#15C7C1" CornerRadius="5">
  45. <DatePicker x:Name="expiryDatePicker" HorizontalOptions="FillAndExpand" VerticalOptions="Center" DateSelected="ExpiryDatePicker_Selected"
  46. />
  47. </Frame>
  48. <!--Row 4 Documents-->
  49. <Label x:Name="documentsLbl"
  50. Text="Documents:" FontAttributes="Bold" FontSize="Medium" Margin="5" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
  51. <Frame Padding="10" BorderColor="#15C7C1" CornerRadius="5">
  52. <Button x:Name="addViewDocsBtn" Grid.Column="0" Text="Add / View Documents" Clicked="AddViewDocsBtn_Clicked" IsEnabled="False"
  53. Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  54. </Frame>
  55. <!--Row 5 Front Photo-->
  56. <Label Text="Front Photo:" FontAttributes="Bold" FontSize="Medium" Margin="5" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
  57. <Frame Padding="10" BorderColor="#15C7C1" CornerRadius="5">
  58. <StackLayout Orientation="Vertical">
  59. <Label Text="Use the camera button to add/change the photo" LineBreakMode="WordWrap" HorizontalOptions="Center" VerticalOptions="Center"/>
  60. <Button x:Name="TakeFrontPhotoBtn" Text="Camera" Clicked="TakeFrontPhoto_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  61. </StackLayout>
  62. </Frame>
  63. <!--Row 6 Back Photo-->
  64. <Label Text="Back Photo:" FontAttributes="Bold" FontSize="Medium" Margin="5" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
  65. <Frame Padding="10" BorderColor="#15C7C1" CornerRadius="5">
  66. <StackLayout Orientation="Vertical">
  67. <Label Text="Use the camera button to add/change the photo" LineBreakMode="WordWrap" HorizontalOptions="Center" VerticalOptions="Center"/>
  68. <Button x:Name="TakeBackPhotoBtn" Text="Camera" Clicked="TakeBackPhoto_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  69. </StackLayout>
  70. </Frame>
  71. </StackLayout>
  72. </ScrollView>
  73. </timesheets:BasePage.PageContent>
  74. </timesheets:BasePage>