<%= render partial: 'settings/nav_sidebar', locals: { tab: :person } %>
<% if @account.person.nil? %>

<%= translate '.no_person' %>

<% else %>
<%= Person.human_attribute_name :last_name %>
<% if @account.person.last_name %> <%= truncate @account.person.last_name %> <% else %> <%= none %> <% end %>
<%= Person.human_attribute_name :first_name %>
<% if @account.person.first_name.present? %> <%= truncate @account.person.first_name %> <% else %> <%= none %> <% end %>
<%= Person.human_attribute_name :middle_name %>
<% if @account.person.middle_name.present? %> <%= truncate @account.person.middle_name %> <% else %> <%= none %> <% end %>
<%= Person.human_attribute_name :sex %>
<% if @account.person.sex.present? %> <%= translate_enum :sex, @account.person.sex %> <% else %> <%= none %> <% end %>
<%= Person.human_attribute_name :date_of_birth %>
<% if @account.person.date_of_birth.present? %> <%= localize @account.person.date_of_birth %> <% else %> <%= none %> <% end %>
<%= Person.human_attribute_name :place_of_birth %>
<% if @account.person.place_of_birth.present? %> <%= truncate @account.person.place_of_birth %> <% else %> <%= none %> <% end %>
<% end %>