-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheckoutPage.xaml
74 lines (57 loc) · 4.65 KB
/
CheckoutPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="LibraryOne.CheckoutPage"
Title="Checkout"
BackgroundColor="#FFFDFA">
<ScrollView>
<StackLayout HorizontalOptions="Center">
<Label Text="LibraryOne" FontSize="30" TextColor="Black" FontAttributes="Bold" HorizontalOptions="Center" VerticalTextAlignment="Center" Margin="0,20,0,30" />
<Border Stroke="#7F8283"
StrokeThickness="3"
StrokeShape="RoundRectangle 40,40,40,40"
HorizontalOptions="Center"
BackgroundColor="LightSteelBlue"
WidthRequest="700"
Margin="0,0,0,100" >
<Border.Shadow>
<Shadow Brush="#000" Radius="6" Opacity="0.6"/>
</Border.Shadow>
<StackLayout>
<!-- Search label -->
<Label Text="Checkout Book" FontSize="24" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" Margin="0,20,0,50" />
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="50" />
<RowDefinition Height="25" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Text="ISBN" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="0" Grid.Column="1" Text="{Binding SelectedBook.Isbn}" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="1" Grid.Column="0" Text="Title" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="1" Grid.Column="1" Text="{Binding SelectedBook.Title}" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="2" Grid.Column="0" Text="Author Name" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="2" Grid.Column="1" Text="{Binding AuthorFullName}" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="3" Grid.Column="0" Text="Availability" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="3" Grid.Column="1" Text="{Binding Availability}" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="4" Grid.Column="0" Text="Checked Out Date" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="4" Grid.Column="1" Text="{Binding SelectedBook.CheckOutDate}" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="5" Grid.Column="0" Text="Return Date" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Label Grid.Row="5" Grid.Column="1" Text="{Binding SelectedBook.ReturnDate}" FontSize="18" FontFamily="Roboto" TextColor="#1D1E1E" HorizontalOptions="Center" />
<Button Grid.Row="6" Grid.Column="0" Clicked="GoToMainPage" BackgroundColor="#FFFDFA" WidthRequest="150" CornerRadius="10" TextColor="#1D1E1E" Text="Cancel" HeightRequest="50" HorizontalOptions="EndAndExpand" Margin="0,0,25,0" />
<Button Grid.Row="6" Grid.Column="1" Clicked="ClickSubmitCheckOut" BackgroundColor="#FFFDFA" WidthRequest="150" CornerRadius="10" TextColor="#1D1E1E" Text="Submit" HeightRequest="50" HorizontalOptions="StartAndExpand" Margin="25,0,0,0"/>
</Grid>
</StackLayout>
</Border>
</StackLayout>
</ScrollView>
</ContentPage>