Display Person#regional_office
This commit is contained in:
parent
e515853dd7
commit
3e3caa68ce
3 changed files with 14 additions and 0 deletions
|
@ -17,5 +17,17 @@
|
||||||
|
|
||||||
<dt><%= Person.human_attribute_name :place_of_birth %></dt>
|
<dt><%= Person.human_attribute_name :place_of_birth %></dt>
|
||||||
<dd><%= truncate @person.place_of_birth %></dd>
|
<dd><%= truncate @person.place_of_birth %></dd>
|
||||||
|
|
||||||
|
<dt><%= Person.human_attribute_name :regional_office %></dt>
|
||||||
|
<dd>
|
||||||
|
<% if @person.regional_office %>
|
||||||
|
<%= link_to(
|
||||||
|
@person.regional_office.country_state.display_name,
|
||||||
|
@person.regional_office.country_state,
|
||||||
|
) %>
|
||||||
|
<% else %>
|
||||||
|
<%= translate :none %>
|
||||||
|
<% end %>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
en:
|
en:
|
||||||
title: Libertarian party of Russia
|
title: Libertarian party of Russia
|
||||||
|
none: None
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
ru:
|
ru:
|
||||||
title: Либертарианская партия России
|
title: Либертарианская партия России
|
||||||
|
none: Нет
|
||||||
|
|
Reference in a new issue