123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:timesheets="clr-namespace:comal.timesheets"
- x:Class="comal.timesheets.SettingsPage">
- <NavigationPage.TitleView>
- <Grid Margin="0" Padding="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Button Grid.Column="0" HorizontalOptions="Start" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
- Text="Exit" Clicked="ExitBtn_Clicked"/>
- <Label Grid.Column="1" Text="Settings" VerticalOptions="Center" x:Name="titleLbl"
- HorizontalOptions="Center" HorizontalTextAlignment="Center" TextColor="White" FontSize="Medium" FontAttributes="Bold"/>
- <Button Grid.Column="2" HorizontalOptions="End" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
- Text="Save" Clicked="SaveBtn_Clicked"/>
- </Grid>
- </NavigationPage.TitleView>
- <ContentPage.Content>
- <ScrollView>
- <StackLayout>
-
- <Frame HorizontalOptions="FillAndExpand" Margin="5" Padding="2">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Text="URLs:" HorizontalOptions="Start" VerticalOptions="Center"/>
- <Label Grid.Row="1" Grid.Column="0" Text="User ID:" HorizontalOptions="Start" VerticalOptions="Center"/>
- <Label Grid.Row="2" Grid.Column="0" Text="Password:" HorizontalOptions="Start" VerticalOptions="Center"/>
-
- <timesheets:StringList Grid.Row="0" Grid.Column="1" HorizontalOptions="Fill" x:Name="stringList" VerticalOptions="Start"/>
- <Entry Grid.Row="1" Grid.Column="1" HorizontalOptions="Fill" x:Name="userIDEnt" VerticalOptions="Start" FontSize="16"/>
- <Entry Grid.Row="2" Grid.Column="1" HorizontalOptions="Fill" x:Name="passwordEnt" VerticalOptions="Start" FontSize="16"/>
- </Grid>
- </Frame>
- <Frame HorizontalOptions="FillAndExpand" Margin="5" Padding="2">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Text="Device ID:" HorizontalOptions="Start" VerticalOptions="Center"/>
- <Label Grid.Row="1" Grid.Column="0" Text="App Version:" HorizontalOptions="Start" VerticalOptions="Center"/>
- <Entry Grid.Row="0" Grid.Column="1" HorizontalOptions="Fill" IsEnabled="False" x:Name="deviceIDEnt" VerticalOptions="Start" FontSize="16"/>
- <Entry Grid.Row="1" Grid.Column="1" HorizontalOptions="Fill" IsEnabled="False" x:Name="appVersionEnt" VerticalOptions="Start" FontSize="16"/>
- </Grid>
- </Frame>
- <Button x:Name="updateVersionBtn" IsEnabled="False" Clicked="UpdateVersionBtn_Clicked" Margin="5"
- Text="Checking Version" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="10"/>
- <Button x:Name="sendErrorsBtn" IsEnabled="False" Clicked="SendErrorsBtn_Clicked" VerticalOptions="Start" Margin="5"
- Text="Email Error Log" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="10"/>
- <Button x:Name="changePasswordBtn" Clicked="ChangePasswordBtn_Clicked" IsVisible="False" Margin="5"
- Text="Change Password" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" CornerRadius="10"/>
-
- </StackLayout>
- </ScrollView>
- </ContentPage.Content>
- </ContentPage>
|