Skip to content

Commit a5d4a8a

Browse files
Apply suggestion from @coderabbitai[bot]
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 7f5ab14 commit a5d4a8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Web/Resgrid.Web/Areas/User/Views/Trainings/Edit.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@
231231
foreach (var answer in question.Answers)
232232
{
233233
<div style="margin-bottom: 5px;">
234-
<input type="radio" name="answer_@qIndex" value="answerForQuestion_@qIndex_@aIndex" @(answer.Correct ? "checked" : "") /> Correct
235-
<input type="text" name="answerForQuestion_@qIndex_@aIndex" value="@answer.Answer" class="form-control" style="display:inline-block; width:auto;" />
234+
<input type="radio" name="answer_@(qIndex)" value="answerForQuestion_@(qIndex)_@(aIndex)" @(answer.Correct ? "checked" : "") /> Correct
235+
<input type="text" name="answerForQuestion_@(qIndex)_@(aIndex)" value="@answer.Answer" class="form-control" style="display:inline-block; width:auto;" />
236236
</div>
237237
aIndex++;
238238
}

0 commit comments

Comments
 (0)