updating assignment form to be more real time

This commit is contained in:
2023-08-08 16:27:52 -06:00
parent 7a2ee58617
commit 1494fd1906
15 changed files with 306 additions and 112 deletions

View File

@@ -0,0 +1,45 @@
@using Management.Web.Shared.Components.Quiz
@inject DragContainer dragContainer
@inherits DroppableQuiz
@code {
private bool showUpdateForm { get; set; } = false;
private void HandleDragStart()
{
dragContainer.DropCallback = dropCallback;
}
private void HandleDragEnd()
{
dragContainer.DropCallback = null;
}
}
<div
draggable="true"
@ondragstart="HandleDragStart"
@ondragend="HandleDragEnd"
@onclick="@(() => showUpdateForm = true)"
role="button"
>
<div class="card">
<div class="card-body p-0">
<div class="card-title pt-2 px-2 m-0">
<h4>@Quiz.Name</h4>
</div>
<div class="card-text overflow-hidden p-2">
<div>Due At: @Quiz.DueAt</div>
</div>
</div>
</div>
</div>