33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
@model MultipleChoiceTrainer.Models.QuizViewModel
|
|
@{
|
|
ViewData["Title"] = "Quiz";
|
|
}
|
|
|
|
@using (Html.BeginForm("quiz", "quiz", FormMethod.Post))
|
|
{
|
|
<input asp-for="QuizType" type="hidden" />
|
|
<input asp-for="CurrentTypeId" type="hidden" />
|
|
|
|
<input asp-for="CurrentQuestion.Id" 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 <small class="text-black-50"> <i class="fas fa-info-circle" data-toggle="tooltip" title="(@Model.CurrentQuestion.Choices.Count(e => e.IsTrue) von @Model.Choices.Count())"></i></small>
|
|
</p>
|
|
@for(int i = 0; i < Model.Choices.Count(); i++)
|
|
{
|
|
|
|
<div class="form-check">
|
|
<input asp-for="@Model.Choices[i].Id" type="hidden" />
|
|
<input asp-for="@Model.Choices[i].Text" type="hidden" />
|
|
<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>
|
|
}
|
|
|
|
<button type="submit" class="btn btn-outline-warning">Prüfen</button>
|
|
|
|
}
|