merge
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
3cd0de72d0
@ -1,37 +1,5 @@
|
|||||||
@page "/displayquestions/{QuestionId:int}"
|
@page "/displayquestions/{QuestionId:int}"
|
||||||
|
|
||||||
@using Blazor.Components;
|
@using Blazor.Components;
|
||||||
<PageTitle>@Localizer["PageTitle"]</PageTitle>
|
|
||||||
<CardViewQuestion>
|
<CardViewQuestion Question="@question" Answers="@answers"></CardViewQuestion>
|
||||||
<CardHeader>
|
|
||||||
<div class="text-center pb-2">
|
|
||||||
<h3>Question n°@question.Id</h3>
|
|
||||||
</div>
|
|
||||||
<div class="text-center pb-5 mt-3">
|
|
||||||
<h5>@question.Content</h5>
|
|
||||||
</div>
|
|
||||||
</CardHeader>
|
|
||||||
<CardBody>
|
|
||||||
<div class="container-fluid text-center justify-content-center row">
|
|
||||||
@foreach (var answer in answers)
|
|
||||||
{
|
|
||||||
<div class="col-3 text-center">
|
|
||||||
@if (answer.Id == question.IdAnswerGood)
|
|
||||||
{
|
|
||||||
<p class="text-success"><strong>@answer.Content</strong></p>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<p class="text-danger">@answer.Content</p>
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
</CardBody>
|
|
||||||
<CardFooter>
|
|
||||||
<div class="card-footer text-muted">
|
|
||||||
Chapitre : @question.ChapterName
|
|
||||||
</div>
|
|
||||||
<BackButton RedirectionPage="/questions"></BackButton>
|
|
||||||
</CardFooter>
|
|
||||||
</CardViewQuestion>
|
|
||||||
|
Loading…
Reference in new issue