mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
updates to markdown for essay questions
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
[Parameter, EditorRequired]
|
||||
public Action<T?> OnSelect { get; set; } = default!;
|
||||
|
||||
[Parameter, EditorRequired]
|
||||
[Parameter]
|
||||
public T? SelectedOption { get; set; }
|
||||
|
||||
private string htmlLabel => Label.Replace("-", "");
|
||||
|
||||
@@ -84,12 +84,15 @@ essay
|
||||
---
|
||||
points: 4
|
||||
this is a short answer question
|
||||
short_answer";
|
||||
short_answer
|
||||
---
|
||||
points: 4
|
||||
the underscore is optional
|
||||
short answer";
|
||||
|
||||
}
|
||||
|
||||
<div class="d-flex flex-column h-100">
|
||||
|
||||
<div class="d-flex flex-row flex-grow-1">
|
||||
@if(showHelp)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@using Management.Web.Shared.Components
|
||||
@using Management.Web.Shared.Components.Forms
|
||||
|
||||
@inject CoursePlanner planner
|
||||
@code {
|
||||
@@ -16,10 +17,18 @@
|
||||
private void submitHandler()
|
||||
{
|
||||
Console.WriteLine("new quiz");
|
||||
Console.WriteLine(selectedAssignmentGroup);
|
||||
if(Name.Trim() == string.Empty)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var newQuiz = new LocalQuiz
|
||||
{
|
||||
Name=Name,
|
||||
Description = "",
|
||||
LocalAssignmentGroupName = selectedAssignmentGroup?.Name,
|
||||
};
|
||||
if(planner.LocalCourse != null)
|
||||
{
|
||||
@@ -38,6 +47,13 @@
|
||||
}
|
||||
modal?.Hide();
|
||||
}
|
||||
|
||||
|
||||
private void setAssignmentGroup(LocalAssignmentGroup? group)
|
||||
{
|
||||
selectedAssignmentGroup = group;
|
||||
}
|
||||
private LocalAssignmentGroup? selectedAssignmentGroup { get; set; }
|
||||
}
|
||||
|
||||
<button
|
||||
@@ -53,7 +69,15 @@
|
||||
<form @onsubmit:preventDefault="true" @onsubmit="submitHandler">
|
||||
<label for="Assignment Name">Name</label>
|
||||
<input id="moduleName" class="form-control" @bind="Name" />
|
||||
<br>
|
||||
<label class="form-label">Assignment Group</label>
|
||||
</form>
|
||||
<ButtonSelect
|
||||
Label="Assignment Group"
|
||||
Options="planner.LocalCourse.Settings.AssignmentGroups"
|
||||
GetName="(g) => g?.Name"
|
||||
OnSelect="(g) => setAssignmentGroup(g)"
|
||||
/>
|
||||
</Body>
|
||||
<Footer>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user