Use caption instead of tr to label the answers table
We might change the style of this caption or remove it completely in the future. In the meantime, we use the right HTML tag for the task to give information regarding what the table is about, and that tag is `<caption>`.
This commit is contained in:
@@ -35,12 +35,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="margin-top">
|
<table class="margin-top">
|
||||||
<tr>
|
<caption><%= t("admin.questions.show.valid_answers") %></caption>
|
||||||
<th colspan="5" scope="col" class="with-button">
|
<thead>
|
||||||
<%= t("admin.questions.show.valid_answers") %>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th><%= t("admin.questions.show.answers.title") %></th>
|
<th><%= t("admin.questions.show.answers.title") %></th>
|
||||||
<th scope="col" class="medium-7"><%= t("admin.questions.show.answers.description") %></th>
|
<th scope="col" class="medium-7"><%= t("admin.questions.show.answers.description") %></th>
|
||||||
@@ -48,6 +44,7 @@
|
|||||||
<th scope="col" class="text-center"><%= t("admin.questions.show.answers.documents") %></th>
|
<th scope="col" class="text-center"><%= t("admin.questions.show.answers.documents") %></th>
|
||||||
<th scope="col" class="text-center"><%= t("admin.questions.show.answers.videos") %></th>
|
<th scope="col" class="text-center"><%= t("admin.questions.show.answers.videos") %></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
<tbody class="sortable" data-js-url="<%= admin_question_answers_order_answers_path(@question.id) %>">
|
<tbody class="sortable" data-js-url="<%= admin_question_answers_order_answers_path(@question.id) %>">
|
||||||
<% @question.question_answers.each do |answer| %>
|
<% @question.question_answers.each do |answer| %>
|
||||||
|
|||||||
Reference in New Issue
Block a user