got rubric creation working

This commit is contained in:
2023-07-31 16:27:38 -06:00
parent 70db40867c
commit 17734ab641
10 changed files with 276 additions and 80 deletions

View File

@@ -147,7 +147,7 @@
&& planner.AssignmentNeedsUpdates(Assignment)
)
{
<div>need to update canvas</div>
<div>Need to update canvas</div>
}
else
{
@@ -164,16 +164,8 @@
<div class="col">
@if(Assignment.use_template)
{
var template = planner.LocalCourse?.AssignmentTemplates.First((t) => t.Id == Assignment.template_id);
if(template == null)
{
System.Console.WriteLine($"Could not find template fof assignment, {Assignment.template_id}");
}
else
{
var html = AssignmentTemplate.GetHtml(template, Assignment);
@((MarkupString) html)
}
var html = Assignment.GetDescriptionHtml(planner.LocalCourse?.AssignmentTemplates);
@((MarkupString) html)
}
else
{