diff --git a/Management.Web/Shared/Components/AssignmentForm/AssignmentMarkdownEditor.razor b/Management.Web/Shared/Components/AssignmentForm/AssignmentMarkdownEditor.razor index 0c197aa..a2d672d 100644 --- a/Management.Web/Shared/Components/AssignmentForm/AssignmentMarkdownEditor.razor +++ b/Management.Web/Shared/Components/AssignmentForm/AssignmentMarkdownEditor.razor @@ -1,4 +1,5 @@ @using Markdig +@using Shared.Components.AssignmentForm @inject CoursePlanner planner @inject AssignmentEditorContext assignmentContext @@ -64,48 +65,59 @@ private MarkupString preview { get => (MarkupString)Markdown.ToHtml(assignmentContext?.Assignment?.Description ?? ""); } private string HelpText() { - var groupNames = string.Join(", " , planner.LocalCourse?.Settings.AssignmentGroups.Select(g => g.Name) ?? []); + var groupNames = string.Join("\n- " , planner.LocalCourse?.Settings.AssignmentGroups.Select(g => g.Name) ?? []); return $@" SubmissionTypes: - {AssignmentSubmissionType.ONLINE_TEXT_ENTRY} - {AssignmentSubmissionType.ONLINE_UPLOAD} Assignment Group Names: -{groupNames} +- {groupNames} "; } } -@if(assignmentContext.Assignment != null && planner.LocalCourse != null) -{ -
-
- - +
+ @if(ShowHelp) + { +
+
+        @HelpText()
+      
-
- @if (error != null) - { -

Error: @error

- } + } - -
Due At: @assignmentContext.Assignment.DueAt
-
Lock At: @assignmentContext.Assignment.LockAt
-
Assignment Group Name @assignmentContext.Assignment.LocalAssignmentGroupName
-
Submission Types
-
    - @foreach(var t in assignmentContext.Assignment.SubmissionTypes) - { -
  • @t
  • - } -
-
-
- @(preview) + @if(assignmentContext.Assignment != null && planner.LocalCourse != null) + { +
+
+ + +
+
+ @if (error != null) + { +

Error: @error

+ } + + +
Due At: @assignmentContext.Assignment.DueAt
+
Lock At: @assignmentContext.Assignment.LockAt
+
Assignment Group Name @assignmentContext.Assignment.LocalAssignmentGroupName
+
Submission Types
+
    + @foreach(var t in assignmentContext.Assignment.SubmissionTypes) + { +
  • @t
  • + } +
+
+
+ @(preview) +
+
+
-
-
-
-} \ No newline at end of file + } +
\ No newline at end of file