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"> <table class="attributes-table">
<thead> <thead>
<tr> <tr>
<td><%= I18n.t('label_attribute') %></td> <th><%= I18n.t('label_attribute') %></th>
<td><%= I18n.t('label_active') %></td> <th><%= I18n.t('label_active') %></th>
<td><%= I18n.t('label_always_visible') %></td> <th><%= I18n.t('label_always_visible') %></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

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

Loading…
Cancel
Save