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/staffs/people/show.html.erb

71 lines
2.3 KiB
Text
Raw Normal View History

<div class="container">
2019-07-26 00:46:01 -04:00
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<%= link_to translate(:staff_services), staff_root_path %>
</li>
<li class="breadcrumb-item">
<%= link_to Person.model_name.human(count: 0), staff_people_path %>
</li>
<li class="breadcrumb-item active" aria-current="page">
<%= @person.full_name %>
</li>
</ol>
</nav>
2019-03-26 19:48:18 -04:00
<%= render partial: 'nav_tabs', locals: { person: @person, tab: :overview } %>
2019-08-14 22:28:21 -04:00
<div class="row">
<div class="col-md-4">
<dl>
<dt><%= Person.human_attribute_name :account %></dt>
<dd><%= staff_account_link_or_none @person.account %></dd>
2019-08-14 08:09:20 -04:00
2019-08-14 22:28:21 -04:00
<dt><%= Person.human_attribute_name :last_name %></dt>
<dd><%= truncate @person.last_name %></dd>
2019-08-14 08:10:11 -04:00
2019-08-14 22:28:21 -04:00
<dt><%= Person.human_attribute_name :first_name %></dt>
<dd><%= truncate @person.first_name %></dd>
2019-07-25 17:45:10 -04:00
2019-08-14 22:28:21 -04:00
<dt><%= Person.human_attribute_name :middle_name %></dt>
<dd><%= truncate @person.middle_name %></dd>
2019-08-14 22:28:21 -04:00
<dt><%= Person.human_attribute_name :sex %></dt>
<dd><%= translate_enum :sex, @person.sex if @person.sex %></dd>
2019-08-14 22:28:21 -04:00
<dt><%= Person.human_attribute_name :date_of_birth %></dt>
<dd><%= localize @person.date_of_birth if @person.date_of_birth %></dd>
2019-08-14 22:28:21 -04:00
<dt><%= Person.human_attribute_name :place_of_birth %></dt>
<dd><%= truncate @person.place_of_birth if @person.place_of_birth %></dd>
</dl>
</div>
2019-08-14 22:28:21 -04:00
<div class="col-md-4">
<dl>
<dt><%= Relationship.human_attribute_name :status %></dt>
2019-08-14 22:41:34 -04:00
<dd><%= relationship_status_or_none @person.current_relationship %></dd>
2019-08-14 22:28:21 -04:00
<dt><%= Relationship.human_attribute_name :from_date %></dt>
<dd>
<%= relationship_from_date_or_none @person.current_relationship %>
</dd>
2019-08-14 22:28:21 -04:00
<dt><%= Relationship.human_attribute_name :regional_office %></dt>
<dd>
<%= staff_regional_office_link_or_none \
@person.current_relationship&.regional_office %>
</dd>
<dt><%= Relationship.human_attribute_name :initiator_account %></dt>
<dd>
<%= staff_account_link_or_none \
@person.current_relationship&.initiator_account %>
</dd>
2019-08-14 22:28:21 -04:00
</dl>
</div>
</div>
</div>