mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
minor layout fixes
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
@inject YamlManager yamlManager
|
||||
@inject CanvasService canvas
|
||||
@inject CoursePlanner planner
|
||||
@inject NavigationManager navigtion
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
@@ -30,6 +31,12 @@
|
||||
loading = false;
|
||||
}
|
||||
|
||||
private void selectNewCourse()
|
||||
{
|
||||
planner.Clear();
|
||||
navigtion.NavigateTo("/");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@if(loading)
|
||||
@@ -42,7 +49,7 @@
|
||||
<div class="mb-3 d-flex justify-content-between" style="height: 4em;">
|
||||
<div class="my-auto">
|
||||
<button
|
||||
@onclick="planner.Clear"
|
||||
@onclick="selectNewCourse"
|
||||
class="btn btn-primary"
|
||||
>
|
||||
Select New Course
|
||||
|
||||
@@ -175,17 +175,34 @@
|
||||
</div>
|
||||
<div class="container">
|
||||
<RubricEditor />
|
||||
<hr>
|
||||
<div class="mx-5 px-5">
|
||||
<SubmissionTypeSelector />
|
||||
</div>
|
||||
</div>
|
||||
<SubmissionTypeSelector />
|
||||
}
|
||||
<ConfirmationModal Label="Delete" Class="btn btn-danger" OnConfirmAsync="HandleDelete" />
|
||||
<button
|
||||
class="btn btn-primary"
|
||||
@onclick="@(() => {
|
||||
assignmentContext.Assignment = null;
|
||||
Navigation.NavigateTo("/course/" + planner.LocalCourse?.Name);
|
||||
})"
|
||||
>
|
||||
Done
|
||||
</button>
|
||||
|
||||
<div class="d-flex justify-content-end m-3">
|
||||
|
||||
<ConfirmationModal Label="Delete" Class="btn btn-danger" OnConfirmAsync="HandleDelete" />
|
||||
|
||||
<button
|
||||
class="btn btn-primary mx-2"
|
||||
@onclick="@(() => {
|
||||
assignmentContext.Assignment = null;
|
||||
Navigation.NavigateTo("/course/" + planner.LocalCourse?.Name);
|
||||
})"
|
||||
>
|
||||
Done
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
@@ -56,7 +56,7 @@
|
||||
var isDiscussion = submissionType == SubmissionType.DISCUSSION_TOPIC;
|
||||
var allowedToBeChecked = !discussionIsSelected || isDiscussion;
|
||||
|
||||
<div class="col-4">
|
||||
<div class="col-3">
|
||||
<div class="form-check form-switch">
|
||||
<input
|
||||
class="form-check-input"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
<div
|
||||
<li
|
||||
draggable="true"
|
||||
@ondragstart="HandleDragStart"
|
||||
@ondragend="HandleDragEnd"
|
||||
@@ -51,4 +51,4 @@
|
||||
role="button"
|
||||
>
|
||||
@Assignment.Name
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -112,16 +112,16 @@
|
||||
ondragover="event.preventDefault();"
|
||||
>
|
||||
@(isWeekDay ? date?.Day : "")
|
||||
<div class="m-0 ps-3">
|
||||
@foreach (var assignment in TodaysAssignments)
|
||||
{
|
||||
@* Console.WriteLine($"assignment: {assignment.Name}"); *@
|
||||
<AssignmentInDay Assignment="assignment" @key="@assignment" />
|
||||
}
|
||||
<ul class="m-0 ps-3">
|
||||
@foreach (var assignment in TodaysAssignments)
|
||||
{
|
||||
@* Console.WriteLine($"assignment: {assignment.Name}"); *@
|
||||
<AssignmentInDay Assignment="assignment" @key="@assignment" />
|
||||
}
|
||||
|
||||
@foreach(var quiz in todaysQuizzes)
|
||||
{
|
||||
<QuizInDay Quiz="quiz" @key="@quiz" />
|
||||
}
|
||||
</div>
|
||||
@foreach(var quiz in todaysQuizzes)
|
||||
{
|
||||
<QuizInDay Quiz="quiz" @key="@quiz" />
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
<div
|
||||
<li
|
||||
draggable="true"
|
||||
@ondragstart="HandleDragStart"
|
||||
@ondragend="HandleDragEnd"
|
||||
@@ -26,4 +26,4 @@
|
||||
role="button"
|
||||
>
|
||||
@Quiz.Name
|
||||
</div>
|
||||
</li>
|
||||
@@ -14,24 +14,24 @@ public static class SubmissionType
|
||||
public static readonly string ONLINE_TEXT_ENTRY = "online_text_entry";
|
||||
public static readonly string ONLINE_UPLOAD = "online_upload";
|
||||
public static readonly string ONLINE_QUIZ = "online_quiz";
|
||||
public static readonly string ON_PAPER = "on_paper";
|
||||
// public static readonly string ON_PAPER = "on_paper";
|
||||
public static readonly string DISCUSSION_TOPIC = "discussion_topic";
|
||||
public static readonly string EXTERNAL_TOOL = "external_tool";
|
||||
// public static readonly string EXTERNAL_TOOL = "external_tool";
|
||||
public static readonly string ONLINE_URL = "online_url";
|
||||
public static readonly string MEDIA_RECORDING = "media_recording";
|
||||
public static readonly string STUDENT_ANNOTATION = "student_annotation";
|
||||
// public static readonly string MEDIA_RECORDING = "media_recording";
|
||||
// public static readonly string STUDENT_ANNOTATION = "student_annotation";
|
||||
public static readonly string NONE = "none";
|
||||
public static readonly IEnumerable<string> AllTypes = new string[]
|
||||
{
|
||||
ONLINE_TEXT_ENTRY,
|
||||
ONLINE_UPLOAD,
|
||||
ONLINE_QUIZ,
|
||||
ON_PAPER,
|
||||
// ON_PAPER,
|
||||
DISCUSSION_TOPIC,
|
||||
EXTERNAL_TOOL,
|
||||
// EXTERNAL_TOOL,
|
||||
ONLINE_URL,
|
||||
MEDIA_RECORDING,
|
||||
STUDENT_ANNOTATION,
|
||||
// MEDIA_RECORDING,
|
||||
// STUDENT_ANNOTATION,
|
||||
NONE,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user