Define table headers with 'th' tags

pull/4663/head
Henriette Dinger 8 years ago
parent caac1acc88
commit c7c681841c
  1. 6
      app/views/types/_form.html.erb
  2. 12
      frontend/app/components/wp-relations/wp-relations.directive.html

@ -63,9 +63,9 @@ See doc/COPYRIGHT.rdoc for more details.
<table class="attributes-table">
<thead>
<tr>
<td><%= I18n.t('label_attribute') %></td>
<td><%= I18n.t('label_active') %></td>
<td><%= I18n.t('label_always_visible') %></td>
<th><%= I18n.t('label_attribute') %></th>
<th><%= I18n.t('label_active') %></th>
<th><%= I18n.t('label_always_visible') %></th>
</tr>
</thead>
<tbody>

@ -19,12 +19,12 @@
<col style="width: 1rem"/>
</colgroup>
<thead>
<tr>
<td title="{{ $ctrl.text.table.subject }}">{{ $ctrl.text.table.subject }}</td>
<td title="{{ $ctrl.text.table.status }}">{{ $ctrl.text.table.status }}</td>
<td title="{{ $ctrl.text.table.assignee }}">{{ $ctrl.text.table.assignee }}</td>
<td></td>
</tr>
<tr>
<th title="{{ $ctrl.text.table.subject }}">{{ $ctrl.text.table.subject }}</th>
<th title="{{ $ctrl.text.table.status }}">{{ $ctrl.text.table.status }}</th>
<th title="{{ $ctrl.text.table.assignee }}">{{ $ctrl.text.table.assignee }}</th>
<th></th>
</tr>
</thead>
<tbody>
<tr wp-relation-row

Loading…
Cancel
Save