1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/settings/people/show.html.erb

72 lines
2 KiB
Text
Raw Normal View History

<div class="container">
<div class="row">
<div class="col-md-3 mb-4">
<%= render partial: 'settings/nav_sidebar', locals: { tab: :person } %>
</div>
<div class="col-md-9">
<% if @account.person.nil? %>
<p class="lead">
<%= translate '.no_person' %>
</p>
<% else %>
<dl>
<dt><%= Person.human_attribute_name :last_name %></dt>
<dd>
<% if @account.person.last_name %>
<%= truncate @account.person.last_name %>
<% else %>
<%= none %>
<% end %>
</dd>
<dt><%= Person.human_attribute_name :first_name %></dt>
<dd>
<% if @account.person.first_name.present? %>
<%= truncate @account.person.first_name %>
<% else %>
<%= none %>
<% end %>
</dd>
<dt><%= Person.human_attribute_name :middle_name %></dt>
<dd>
<% if @account.person.middle_name.present? %>
<%= truncate @account.person.middle_name %>
<% else %>
<%= none %>
<% end %>
</dd>
<dt><%= Person.human_attribute_name :sex %></dt>
<dd>
<% if @account.person.sex.present? %>
<%= translate_enum :sex, @account.person.sex %>
<% else %>
<%= none %>
<% end %>
</dd>
<dt><%= Person.human_attribute_name :date_of_birth %></dt>
<dd>
<% if @account.person.date_of_birth.present? %>
<%= localize @account.person.date_of_birth %>
<% else %>
<%= none %>
<% end %>
</dd>
<dt><%= Person.human_attribute_name :place_of_birth %></dt>
<dd>
<% if @account.person.place_of_birth.present? %>
<%= truncate @account.person.place_of_birth %>
<% else %>
<%= none %>
<% end %>
</dd>
</dl>
<% end %>
</div>
</div>
</div>