Reorder displayed attributes
This commit is contained in:
parent
3f94c7656b
commit
f6c6052ebd
2 changed files with 7 additions and 7 deletions
|
@ -5,15 +5,15 @@
|
|||
<th scope="col">
|
||||
<%= Person.human_attribute_name :id %>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<%= Person.human_attribute_name :last_name %>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<%= Person.human_attribute_name :first_name %>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<%= Person.human_attribute_name :middle_name %>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<%= Person.human_attribute_name :last_name %>
|
||||
</th>
|
||||
<th scope="col" class="d-none d-lg-table-cell">
|
||||
<%= Person.human_attribute_name :date_of_birth %>
|
||||
</th>
|
||||
|
@ -28,9 +28,9 @@
|
|||
<% @people.each do |person| %>
|
||||
<tr>
|
||||
<td scope="row"><%= person.id %></td>
|
||||
<td><%= truncate person.last_name, length: 15 %></td>
|
||||
<td><%= truncate person.first_name, length: 15 %></td>
|
||||
<td><%= truncate person.middle_name, length: 15 %></td>
|
||||
<td><%= truncate person.last_name, length: 15 %></td>
|
||||
<td class="d-none d-lg-table-cell">
|
||||
<%= localize person.date_of_birth if person.date_of_birth %>
|
||||
</td>
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
<%= render partial: 'nav_tabs', locals: { person: @person, tab: :overview } %>
|
||||
|
||||
<dl>
|
||||
<dt><%= Person.human_attribute_name :last_name %></dt>
|
||||
<dd><%= truncate @person.last_name %></dd>
|
||||
|
||||
<dt><%= Person.human_attribute_name :first_name %></dt>
|
||||
<dd><%= truncate @person.first_name %></dd>
|
||||
|
||||
<dt><%= Person.human_attribute_name :middle_name %></dt>
|
||||
<dd><%= truncate @person.middle_name %></dd>
|
||||
|
||||
<dt><%= Person.human_attribute_name :last_name %></dt>
|
||||
<dd><%= truncate @person.last_name %></dd>
|
||||
|
||||
<dt><%= Person.human_attribute_name :sex %></dt>
|
||||
<dd><%= translate_enum :sex, @person.sex if @person.sex %></dd>
|
||||
|
||||
|
|
Reference in a new issue