+
+
+ @quizContext.Quiz?.Name
+
+
-
-@if(quizContext.Quiz != null)
-{
-
-
-
-
-
+ @if(quizContext.Quiz == null)
+ {
+
+
+
+ }
+
+
+ Points: @quizContext.Quiz?.Questions.Sum(q => q.Points)
+
+ @if(quizInCanvas != null)
+ {
+ @if(quizInCanvas?.Published == true)
+ {
+
+ Published!
+
+ }
+ else
+ {
+
+ Not Published
+
+ }
+ }
+
-
-}
\ No newline at end of file
+
+
+
+
+ @if(quizContext.Quiz != null)
+ {
+
+ }
+
+
+
+
+
+ @if(quizContext.Quiz != null)
+ {
+
+
+
+
+ @if(quizInCanvas != null)
+ {
+
+ View in Canvas
+
+ }
+
+
+
+ }
+
+ @if(addingQuizToCanvas)
+ {
+
+ }
+
+
\ No newline at end of file
diff --git a/Management.Web/Shared/Components/ConfirmationModal.razor b/Management.Web/Shared/Components/ConfirmationModal.razor
index dc2c07f..4528bb3 100644
--- a/Management.Web/Shared/Components/ConfirmationModal.razor
+++ b/Management.Web/Shared/Components/ConfirmationModal.razor
@@ -15,6 +15,8 @@
[Parameter]
[EditorRequired]
public string Class { get; set; } = "";
+ [Parameter]
+ public bool Disabled { get; set; } = false;
private Modal? modal { get; set; } = null;
@@ -49,6 +51,7 @@
-
-
-
- @quizContext.Quiz?.Name
-
-
-
-
- Points: @quizContext.Quiz?.Questions.Sum(q => q.Points)
-
-
-
-
-
-
-
-
-
- @if (error != null)
+
+ @if(showHelp)
{
-
Error: @error
+
+ @exampleMarkdownQuestion
+
}
-
+
+
+
+
+
+ @if (error != null)
+ {
+
Error: @error
+ }
+
+
+
-
-
+
+
+
+
\ No newline at end of file
diff --git a/Management.Web/Shared/Components/Quiz/Markdown/QuizPreview.razor b/Management.Web/Shared/Components/Quiz/Markdown/QuizPreview.razor
index a8b7295..bf114e5 100644
--- a/Management.Web/Shared/Components/Quiz/Markdown/QuizPreview.razor
+++ b/Management.Web/Shared/Components/Quiz/Markdown/QuizPreview.razor
@@ -24,34 +24,37 @@
@if(Quiz != null)
{
-
-
-
-
Due At:
-
@Quiz.DueAt
-
-
-
Lock At:
-
@Quiz.LockAt
-
-
-
Shuffle Answers:
-
@Quiz.ShuffleAnswers
-
-
-
Allowed Attempts:
-
@Quiz.AllowedAttempts
-
-
-
One question at a time:
-
@Quiz.OneQuestionAtATime
-
-
-
Assignment Group:
-
@Quiz.LocalAssignmentGroupName
+
+
+
+
+
Due At:
+
@Quiz.DueAt
+
+
+
Lock At:
+
@Quiz.LockAt
+
+
+
Shuffle Answers:
+
@Quiz.ShuffleAnswers
+
+
+
Allowed Attempts:
+
@Quiz.AllowedAttempts
+
+
+
One question at a time:
+
@Quiz.OneQuestionAtATime
+
+
+
Assignment Group:
+
@Quiz.LocalAssignmentGroupName
+
+
@Quiz.Description
diff --git a/Management.Web/Shared/MainLayout.razor b/Management.Web/Shared/MainLayout.razor
index e5fa9d5..0ed14f3 100644
--- a/Management.Web/Shared/MainLayout.razor
+++ b/Management.Web/Shared/MainLayout.razor
@@ -13,7 +13,7 @@
About
*@
-
+
@Body
diff --git a/Management.Web/wwwroot/css/site.css b/Management.Web/wwwroot/css/site.css
index 9b002fb..f7efe7c 100644
--- a/Management.Web/wwwroot/css/site.css
+++ b/Management.Web/wwwroot/css/site.css
@@ -1,6 +1,6 @@
@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");
-html,
+/* html,
body {
font-family: "DM Sans", sans-serif;
}
@@ -42,7 +42,7 @@ a,
.validation-message {
color: red;
-}
+} */
#blazor-error-ui {
background: lightyellow;
@@ -89,3 +89,33 @@ a,
.decorationContentClass {
background: lightblue;
} */
+
+
+
+/* scroll bar */
+
+/* width */
+::-webkit-scrollbar {
+ width: 8px;
+}
+
+/* Track */
+::-webkit-scrollbar-track {
+ /* box-shadow: inset 0 0 5px grey; */
+ border-radius: 8px;
+}
+
+/* Handle */
+::-webkit-scrollbar-thumb {
+ background: rgba(0, 0, 0, 0.6);
+ border-radius: 8px;
+ border-style: solid;
+ border-color: rgba(255, 255, 255, 0.3);
+ border-width: 1px;
+ /* outline-offset: 2px; */
+}
+
+/* Handle on hover */
+::-webkit-scrollbar-thumb:hover {
+ background: rgb(31, 31, 31);
+}
\ No newline at end of file
diff --git a/Management/Services/Canvas/CanvasServiceUtils.cs b/Management/Services/Canvas/CanvasServiceUtils.cs
index e3f7a72..936fc71 100644
--- a/Management/Services/Canvas/CanvasServiceUtils.cs
+++ b/Management/Services/Canvas/CanvasServiceUtils.cs
@@ -20,8 +20,8 @@ public class CanvasServiceUtils
if (response.ErrorMessage?.Length > 0)
{
- System.Console.WriteLine("error in response");
- System.Console.WriteLine(response.ErrorMessage);
+ Console.WriteLine("error in response");
+ Console.WriteLine(response.ErrorMessage);
throw new Exception("error in response");
}
@@ -39,7 +39,7 @@ public class CanvasServiceUtils
}
if (requestCount > 1)
- System.Console.WriteLine($"Requesting {typeof(T)} took {requestCount} requests");
+ Console.WriteLine($"Requesting {typeof(T)} took {requestCount} requests");
return returnData;
}