Style detail page
This commit is contained in:
@@ -1,13 +1,21 @@
|
||||
<% if @person != nil %>
|
||||
<% if @person['picture_uri'] != nil %>
|
||||
<%= image_tag @host + @person['picture_uri'] %>
|
||||
<h2><%= @person['first_name'] %> <%= @person['last_name'] %></h2>
|
||||
<div class="profile-picture">
|
||||
<% if @person['picture_uri'] != nil %>
|
||||
<%= image_tag @host + @person['picture_uri'] %>
|
||||
<% end %>
|
||||
</div>
|
||||
<h5><%= @person['preceding_titles'] %> <%= @person['postpositioned_titles'] %></h5>
|
||||
<% if @person['main_phone_number'] != nil %>
|
||||
<p>Phone: <%= @person['main_phone_number'] %></p>
|
||||
<% end %>
|
||||
<p>E-Mail: <%= @person['main_email'] %></p>
|
||||
<% if @person['other_emails'] != [] %>
|
||||
<p>Other E-Mails: <%= @person['other_emails'] %></p>
|
||||
<% end %>
|
||||
<% if @person['main_addresses'] != nil %>
|
||||
<p>Address: <%= @person['main_addresses'][0]['street'] %>, <%= @person['main_addresses'][0]['zip_code'] %> <%= @person['main_addresses'][0]['city'] %></p>
|
||||
<% end %>
|
||||
<p><%= @person['preceding_titles'] %> <%= @person['first_name'] %> <%= @person['last_name'] %>,
|
||||
<%= @person['gender'] %> <%= @person['postpositioned_titles'] %></p>
|
||||
<p>Phone: <%= @person['main_phone_number'] %></p>
|
||||
<p>Mail: <%= @person['main_email'] %></p>
|
||||
<p>Other mails: <%= @person['other_emails'] %></p>
|
||||
<p>Main addresses: <%= @person['main_addresses'] %></p>
|
||||
<!-- <p>Employee: <%#= @person.employee %></p>-->
|
||||
<%= button_to 'Add to favorites', action: :add_to_fav, tiss_id: @person['tiss_id'] %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user