1
0
Fork 0

Reorder HTML

This commit is contained in:
Alex Kotov 2019-08-14 17:10:11 +05:00
parent 0646a9c227
commit a8e4d46a2e
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -21,6 +21,18 @@
<dt><%= Person.human_attribute_name :account %></dt>
<dd><%= staff_account_link_or_none @person.account %></dd>
<dt><%= Person.human_attribute_name :current_regional_office %></dt>
<dd>
<% if @person.current_regional_office %>
<%= link_to(
@person.current_regional_office.federal_subject.display_name,
@person.current_regional_office.federal_subject,
) %>
<% else %>
<%= translate :none %>
<% end %>
</dd>
<dt><%= Person.human_attribute_name :last_name %></dt>
<dd><%= truncate @person.last_name %></dd>
@ -38,17 +50,5 @@
<dt><%= Person.human_attribute_name :place_of_birth %></dt>
<dd><%= truncate @person.place_of_birth if @person.place_of_birth %></dd>
<dt><%= Person.human_attribute_name :current_regional_office %></dt>
<dd>
<% if @person.current_regional_office %>
<%= link_to(
@person.current_regional_office.federal_subject.display_name,
@person.current_regional_office.federal_subject,
) %>
<% else %>
<%= translate :none %>
<% end %>
</dd>
</dl>
</div>