270 lines
12 KiB
XML
270 lines
12 KiB
XML
<?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="WguApp.Views.CoursePage">
|
|
|
|
<ContentPage.ToolbarItems>
|
|
<ToolbarItem Text="Save"
|
|
Order="Primary"
|
|
Priority="0"
|
|
IconImageSource="{FontImageSource Glyph='', FontFamily='Phosphor', Size=20, Color=AliceBlue}"
|
|
Clicked="SaveButton_OnClicked"/>
|
|
<ToolbarItem Text="Delete"
|
|
Order="Primary"
|
|
Priority="0"
|
|
IconImageSource="{FontImageSource Glyph='', FontFamily='Phosphor', Size=20, Color=Red}"
|
|
Clicked="DeleteButton_OnClicked"/>
|
|
</ContentPage.ToolbarItems>
|
|
|
|
<ContentPage.Content>
|
|
<Grid RowDefinitions="*">
|
|
<ScrollView HorizontalOptions="Fill"
|
|
HorizontalScrollBarVisibility="Never">
|
|
<VerticalStackLayout HorizontalOptions="Fill">
|
|
<Label Text="Course Info"
|
|
FontAttributes="Bold"
|
|
FontSize="20"
|
|
Margin="20, 10, 20, 5"/>
|
|
|
|
<Grid ColumnDefinitions="Auto, *"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Title:"
|
|
VerticalOptions="Center" />
|
|
|
|
<Entry x:Name="TitleEntry"
|
|
Grid.Column="1"
|
|
Placeholder="Enter value here..."
|
|
VerticalOptions="Center"
|
|
WidthRequest="200"
|
|
HorizontalOptions="End" />
|
|
|
|
</Grid>
|
|
|
|
<Grid ColumnDefinitions="*, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Start date:"
|
|
VerticalOptions="Center" />
|
|
|
|
<DatePicker x:Name="StartDatePicker"
|
|
Grid.Column="1"
|
|
VerticalOptions="Center"
|
|
WidthRequest="200"
|
|
HorizontalOptions="End" />
|
|
|
|
</Grid>
|
|
|
|
<Grid ColumnDefinitions="*, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Expected end date:"
|
|
VerticalOptions="Center" />
|
|
|
|
<DatePicker x:Name="EndDatePicker"
|
|
Grid.Column="1"
|
|
VerticalOptions="Center"
|
|
WidthRequest="200"
|
|
HorizontalOptions="End" />
|
|
|
|
</Grid>
|
|
|
|
<Grid ColumnDefinitions="*, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Status:"
|
|
VerticalOptions="Center" />
|
|
|
|
<Picker x:Name="StatusPicker"
|
|
Grid.Column="1"
|
|
VerticalOptions="Center"
|
|
WidthRequest="200"
|
|
HorizontalOptions="End" />
|
|
</Grid>
|
|
|
|
<Label Text="Instructor"
|
|
FontAttributes="Bold"
|
|
FontSize="20"
|
|
Margin="20, 10, 20, 5"/>
|
|
|
|
<Grid ColumnDefinitions="*, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Name:"
|
|
VerticalOptions="Center" />
|
|
|
|
<Entry x:Name="InstructorNameEntry"
|
|
Grid.Column="1"
|
|
Placeholder="Name"
|
|
VerticalOptions="Center"
|
|
WidthRequest="200"
|
|
HorizontalOptions="End" />
|
|
</Grid>
|
|
|
|
<Grid ColumnDefinitions="*, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10, 20, 5">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Phone:"
|
|
VerticalOptions="Center" />
|
|
|
|
<Entry x:Name="InstructorPhoneEntry"
|
|
Grid.Column="1"
|
|
Placeholder="Phone"
|
|
VerticalOptions="Center"
|
|
WidthRequest="200"
|
|
HorizontalOptions="End" />
|
|
</Grid>
|
|
|
|
<Grid ColumnDefinitions="*, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Email:"
|
|
VerticalOptions="Center" />
|
|
<Entry x:Name="InstructorEmailEntry"
|
|
Grid.Column="1"
|
|
Placeholder="Email"
|
|
VerticalOptions="Center"
|
|
WidthRequest="200"
|
|
HorizontalOptions="End" />
|
|
</Grid>
|
|
|
|
<Grid ColumnDefinitions="*, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 5">
|
|
|
|
<Label Grid.Column="0" Text="Notes"
|
|
FontAttributes="Bold"
|
|
FontSize="20"
|
|
VerticalOptions="Center"/>
|
|
|
|
<Button Grid.Column="1"
|
|
Text=""
|
|
FontFamily="Phosphor"
|
|
FontSize="20"
|
|
WidthRequest="20"
|
|
HeightRequest="20"
|
|
TextColor="AliceBlue"
|
|
BackgroundColor="Transparent"
|
|
HorizontalOptions="End"
|
|
VerticalOptions="Center"
|
|
Clicked="ShareNotesButton_OnClicked"/>
|
|
</Grid>
|
|
|
|
<Border HorizontalOptions="Fill"
|
|
Margin="30, 5"
|
|
Stroke="AliceBlue"
|
|
StrokeThickness="2">
|
|
<Editor x:Name="NotesEditor"
|
|
HeightRequest="150"/>
|
|
</Border>
|
|
|
|
<Label Text="Notifications"
|
|
FontAttributes="Bold"
|
|
FontSize="20"
|
|
Margin="20, 5"/>
|
|
|
|
<Grid ColumnDefinitions="Auto, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="Start Date:"
|
|
VerticalOptions="Center" />
|
|
<CheckBox x:Name="StartNotifCheck"
|
|
Grid.Column="1"
|
|
VerticalOptions="Center"
|
|
HorizontalOptions="End" />
|
|
</Grid>
|
|
|
|
<Grid ColumnDefinitions="Auto, Auto"
|
|
ColumnSpacing="10"
|
|
Padding="5"
|
|
HorizontalOptions="Fill"
|
|
Margin="20, 10">
|
|
|
|
<Label Grid.Column="0"
|
|
Text="End Date:"
|
|
VerticalOptions="Center" />
|
|
<CheckBox x:Name="EndNotifCheck"
|
|
Grid.Column="1"
|
|
VerticalOptions="Center"
|
|
HorizontalOptions="End" />
|
|
</Grid>
|
|
|
|
<Grid RowDefinitions="*, Auto"
|
|
ColumnDefinitions="*, Auto"
|
|
HorizontalOptions="Fill"
|
|
HeightRequest="40"
|
|
Margin="30, 20, 30, 0">
|
|
|
|
<Label Text="Assessments"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
FontSize="15"
|
|
VerticalOptions="Center"
|
|
HorizontalOptions="Fill"
|
|
HorizontalTextAlignment="Start"
|
|
HeightRequest="20" />
|
|
|
|
<Button Grid.Row="0"
|
|
Grid.Column="1"
|
|
Text=""
|
|
FontFamily="Phosphor"
|
|
FontSize="15"
|
|
WidthRequest="20"
|
|
HeightRequest="20"
|
|
TextColor="AliceBlue"
|
|
BackgroundColor="Transparent"
|
|
HorizontalOptions="End"
|
|
VerticalOptions="Center"
|
|
Clicked="AddAssessmentButton_OnClicked"/>
|
|
</Grid>
|
|
|
|
<BoxView
|
|
Color="AliceBlue"
|
|
HeightRequest="2"
|
|
HorizontalOptions="Fill"
|
|
Margin="30, 0, 30, 20" />
|
|
|
|
<VerticalStackLayout x:Name="AssessmentButtonStack"
|
|
Margin="30,10"
|
|
HorizontalOptions="Fill"
|
|
Spacing="5"/>
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
</Grid>
|
|
</ContentPage.Content>
|
|
</ContentPage> |