Fix mess made by @Pfingstfrosch
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<h1>This is the result for your basic people search</h1>
|
||||
|
||||
<% @people.each_with_index do |person, index| %>
|
||||
<p>
|
||||
<%= person['first_name'] %>
|
||||
<%= person['last_name'] %>
|
||||
<%= button_to 'Details', action: :show_detail, tiss_id: person['tiss_id'] %>
|
||||
<%= button_to 'Add to favorites', action: :add_to_fav, tiss_id: person['tiss_id'] %>
|
||||
</p>
|
||||
<% end %>
|
||||
@@ -0,0 +1,15 @@
|
||||
Chosen person in detail view:
|
||||
|
||||
<% if @person != nil %>
|
||||
<% if @person['picture_uri'] != nil %>
|
||||
<%= image_tag @host + @person['picture_uri'] %>
|
||||
<% 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