SettingsPage.xaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:timesheets="clr-namespace:comal.timesheets"
  4. x:Class="comal.timesheets.SettingsPage">
  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="Settings" 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="SaveBtn_Clicked"/>
  18. </Grid>
  19. </NavigationPage.TitleView>
  20. <ContentPage.Content>
  21. <ScrollView>
  22. <StackLayout>
  23. <Frame HorizontalOptions="FillAndExpand" Margin="5" Padding="2">
  24. <Grid>
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="auto"/>
  27. <RowDefinition Height="auto"/>
  28. <RowDefinition Height="auto"/>
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="auto"/>
  32. <ColumnDefinition Width="*"/>
  33. </Grid.ColumnDefinitions>
  34. <Label Grid.Row="0" Grid.Column="0" Text="URLs:" HorizontalOptions="Start" VerticalOptions="Center"/>
  35. <Label Grid.Row="1" Grid.Column="0" Text="User ID:" HorizontalOptions="Start" VerticalOptions="Center"/>
  36. <Label Grid.Row="2" Grid.Column="0" Text="Password:" HorizontalOptions="Start" VerticalOptions="Center"/>
  37. <timesheets:StringList Grid.Row="0" Grid.Column="1" HorizontalOptions="Fill" x:Name="stringList" VerticalOptions="Start"/>
  38. <Entry Grid.Row="1" Grid.Column="1" HorizontalOptions="Fill" x:Name="userIDEnt" VerticalOptions="Start" FontSize="16"/>
  39. <Entry Grid.Row="2" Grid.Column="1" HorizontalOptions="Fill" x:Name="passwordEnt" VerticalOptions="Start" FontSize="16"/>
  40. </Grid>
  41. </Frame>
  42. <Frame HorizontalOptions="FillAndExpand" Margin="5" Padding="2">
  43. <Grid>
  44. <Grid.RowDefinitions>
  45. <RowDefinition Height="auto"/>
  46. <RowDefinition Height="auto"/>
  47. </Grid.RowDefinitions>
  48. <Grid.ColumnDefinitions>
  49. <ColumnDefinition Width="auto"/>
  50. <ColumnDefinition Width="*"/>
  51. </Grid.ColumnDefinitions>
  52. <Label Grid.Row="0" Grid.Column="0" Text="Device ID:" HorizontalOptions="Start" VerticalOptions="Center"/>
  53. <Label Grid.Row="1" Grid.Column="0" Text="App Version:" HorizontalOptions="Start" VerticalOptions="Center"/>
  54. <Entry Grid.Row="0" Grid.Column="1" HorizontalOptions="Fill" IsEnabled="False" x:Name="deviceIDEnt" VerticalOptions="Start" FontSize="16"/>
  55. <Entry Grid.Row="1" Grid.Column="1" HorizontalOptions="Fill" IsEnabled="False" x:Name="appVersionEnt" VerticalOptions="Start" FontSize="16"/>
  56. </Grid>
  57. </Frame>
  58. <Button x:Name="updateVersionBtn" IsEnabled="False" Clicked="UpdateVersionBtn_Clicked" Margin="5"
  59. Text="Checking Version" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="10"/>
  60. <Button x:Name="sendErrorsBtn" IsEnabled="False" Clicked="SendErrorsBtn_Clicked" VerticalOptions="Start" Margin="5"
  61. Text="Email Error Log" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="10"/>
  62. <Button x:Name="changePasswordBtn" Clicked="ChangePasswordBtn_Clicked" IsVisible="False" Margin="5"
  63. Text="Change Password" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="10"/>
  64. </StackLayout>
  65. </ScrollView>
  66. </ContentPage.Content>
  67. </ContentPage>