JobITPDetails.xaml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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"
  4. x:Class="comal.timesheets.SiteITPModule.JobITPDetails"
  5. Title="ITP Forms">
  6. <timesheets:BasePage.PageContent>
  7. <ScrollView Padding="10">
  8. <StackLayout>
  9. <Frame BorderColor="#9f4576" CornerRadius="10" HasShadow="False">
  10. <Label x:Name="ITPNameLbl" HorizontalOptions="Center" FontSize="Medium" TextColor="#008b8b" FontAttributes="Bold"/>
  11. </Frame>
  12. <Frame BorderColor="#9f4576" CornerRadius="10" HasShadow="False">
  13. <Grid>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="2*"/>
  16. <ColumnDefinition Width="*"/>
  17. </Grid.ColumnDefinitions>
  18. <Label Grid.Column="0" VerticalOptions="Center"
  19. x:Name="DFDescriptionLbl" FontSize="Small" FontAttributes="Bold" HorizontalTextAlignment="Center"/>
  20. <Button Grid.Column="1" HeightRequest="50"
  21. Text="Add Form" FontSize="Medium" FontAttributes="Bold" TextColor="White" BackgroundColor="#15C7C1" CornerRadius="10" Margin="5"
  22. HorizontalOptions="FillAndExpand" VerticalOptions="Center" Clicked="Add_Clicked"
  23. />
  24. </Grid>
  25. </Frame>
  26. <Frame BorderColor="#9f4576" CornerRadius="10" HasShadow="False">
  27. <StackLayout>
  28. <Label x:Name="countLbl" HorizontalOptions="Center"/>
  29. <ListView x:Name="ITPFormDisplayList" HasUnevenRows="True" BackgroundColor="Transparent" Margin="0,0,0,0">
  30. <ListView.ItemTemplate>
  31. <DataTemplate>
  32. <ViewCell Tapped="ITPFormList_Tapped">
  33. <Frame Padding="10" Margin="5" CornerRadius="10" HasShadow="False" BackgroundColor="{Binding Color}">
  34. <Grid>
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="auto"/>
  37. <RowDefinition Height="auto"/>
  38. </Grid.RowDefinitions>
  39. <Grid.ColumnDefinitions>
  40. <ColumnDefinition Width="75"/>
  41. <ColumnDefinition Width="*"/>
  42. </Grid.ColumnDefinitions>
  43. <Button Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" WidthRequest="75" HeightRequest="75" Margin="2" Padding="0"
  44. ImageSource="dashboardsmall.png" BackgroundColor="Transparent"
  45. />
  46. <Label Grid.Row="0" Grid.Column="1" Margin="1"
  47. Text="{Binding Description}" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="Start" LineBreakMode="WordWrap"/>
  48. <Label Grid.Row="1" Grid.Column="1" Margin="1"
  49. Text="{Binding Status}" FontSize="Medium" HorizontalOptions="Start" LineBreakMode="WordWrap"/>
  50. </Grid>
  51. </Frame>
  52. </ViewCell>
  53. </DataTemplate>
  54. </ListView.ItemTemplate>
  55. </ListView>
  56. </StackLayout>
  57. </Frame>
  58. </StackLayout>
  59. </ScrollView>
  60. </timesheets:BasePage.PageContent>
  61. </timesheets:BasePage>