osem-fcy/app/views/admin/questions/show.html.haml
Andrew Kvalheim 1f31c1c80d Correct invalid table markup
- Add required <tr> within <thead>
  - Add implicit <tbody> after <thead>
2023-03-04 14:33:08 -08:00

27 lines
725 B
Text

.container
.row
.col-md-12
.page-header
%h1= @question.title
- @question.answers.each do |answer|
= answer.title
(#{answer.qanswers.find_by(question: @question).registrations.where(conference: @conference).count})
.row
.col-md-12
%table.datatable#question_users
%thead
%tr
%th Name
%th Username
%th Email
%th Answer
%tbody
- @registrations.each do |registration|
%tr
%td= registration.name
%td= registration.username
%td= registration.email
%td= registration.qanswers.find_by(question: @question).answer.title