added quiz popup form and displaying on month

This commit is contained in:
2023-08-11 20:13:55 -06:00
parent d16cd53392
commit 93c1c754cd
12 changed files with 160 additions and 68 deletions

View File

@@ -1,14 +1,12 @@
@using Management.Web.Shared.Components.Quiz
@inject DragContainer dragContainer
@inject QuizEditorContext quizContext
@inherits DroppableQuiz
@code {
private bool showUpdateForm { get; set; } = false;
private void HandleDragStart()
{
dragContainer.DropCallback = dropCallback;
@@ -26,7 +24,7 @@
draggable="true"
@ondragstart="HandleDragStart"
@ondragend="HandleDragEnd"
@onclick="@(() => showUpdateForm = true)"
@onclick="@(() => quizContext.Quiz = Quiz)"
role="button"
>
<div class="card">