commit
ca51465a17
@ -0,0 +1,32 @@
|
||||
@page "/displayquestions/{QuestionId:int}"
|
||||
|
||||
@if (question != null)
|
||||
{
|
||||
<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>
|
||||
|
||||
<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>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>Question not found</p>
|
||||
}
|
Loading…
Reference in new issue