1
0
Fork 0

Display FederalSubject#display_name

This commit is contained in:
Alex Kotov 2019-07-19 00:11:33 +05:00
parent 50b4652c36
commit 7b2306c0aa
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 4 additions and 6 deletions

View file

@ -3,10 +3,7 @@
<thead>
<tr>
<th scope="col">
<%= FederalSubject.human_attribute_name :english_name %>
</th>
<th scope="col">
<%= FederalSubject.human_attribute_name :native_name %>
<%= FederalSubject.human_attribute_name :display_name %>
</th>
<th scope="col"></th>
</tr>
@ -15,8 +12,7 @@
<tbody>
<% @federal_subjects.each do |federal_subject| %>
<tr>
<td><%= federal_subject.english_name %></td>
<td><%= federal_subject.native_name %></td>
<td><%= federal_subject.display_name %></td>
<td>
<% if policy(federal_subject).show? %>
<%= link_to federal_subject,

View file

@ -36,6 +36,7 @@ en:
id: ID
english_name: Name
native_name: Name
display_name: Name
passport:
id: ID
first_name: First name

View file

@ -36,6 +36,7 @@ ru:
id: ID
english_name: Название
native_name: Название
display_name: Название
passport:
id: ID
first_name: Имя