Quiz angefangen
This commit is contained in:
25
MultipleChoiceTrainer/Views/Quiz/Quiz.cshtml
Normal file
25
MultipleChoiceTrainer/Views/Quiz/Quiz.cshtml
Normal file
@@ -0,0 +1,25 @@
|
||||
@model MultipleChoiceTrainer.Models.QuizViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Quiz";
|
||||
}
|
||||
|
||||
@using (Html.BeginForm("quiz", "quiz", FormMethod.Post))
|
||||
{
|
||||
<input asp-for="QuizType" type="hidden" />
|
||||
|
||||
<h4>Frage beantworten</h4>
|
||||
<p class="text-black-50">aus Lektion <i>@Model.CurrentQuestion.Section.Name</i>, Kurs <i>@Model.CurrentQuestion.Section.Category.Name</i></p>
|
||||
<hr />
|
||||
<p class="lead">
|
||||
@Model.CurrentQuestion.Text
|
||||
</p>
|
||||
@for(int i = 0; i < Model.Choices.Count(); i++)
|
||||
{
|
||||
|
||||
<div class="form-check">
|
||||
<input asp-for="@Model.Choices[i].IsTrue" class="form-check-input" value="true" />
|
||||
<label asp-for="@Model.Choices[i].IsTrue" class="form-check-label">@Model.Choices[i].Text</label>
|
||||
</div>
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user