polyglot/app/views/pages/_contact.html.erb

64 lines
2.1 KiB
Plaintext
Raw Normal View History

<%
def hello_world
puts "Hello World"
end
%>
2018-08-28 16:18:58 +00:00
<div class="card">
<div class="info">
<img src="https://kitt.lewagon.com/placeholder/users/ssaunier" alt="" class="profile img-circle" width=65>
<div class="text text-color">
<% if contact.nil? || contact.nil? %> <!-- REPLACE WITH FIRST NAME AND LAST NAME -->
<p><%= contact.email %></p>
<% else %>
<p><%= contact.email %></p>
<!-- <p><%#= contact.first_name %> <%#= contact.last_name %></p> -->
<% end %>
2018-08-28 16:18:58 +00:00
<p class="darker">Last call: <%= Time.now %></p>
</div>
</div>
<div class="call" data-user-id="<%= contact.id %>">
2018-08-31 10:29:24 +00:00
<%= link_to establish_call_path(contact.id), remote: true, id: "modalTrigger" do %>
2018-08-28 16:18:58 +00:00
<i class="fas fa-phone"></i>
<% end %>
</div>
</div>
2018-08-31 10:29:24 +00:00
2018-08-28 16:18:58 +00:00
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
2018-08-28 17:26:33 +00:00
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<div class="modal-content modal-color">
<div class="modal-header">
<%= link_to "#", class:"pull-right", 'data-dismiss':"modal", 'data-target':"#myModal" do %>
<i class="fas fa-times-circle"></i>
<% end %>
<div class="container">
<div class="modal-container">
<img src="https://kitt.lewagon.com/placeholder/users/ssaunier" alt="" class="profile img-circle" width=150>
<div class="modal-text">
<h4 class="modal-title" id="myModalLabel">Calling</h4>
<h4>
<strong>
<!-- REPLACE WITH FIRST NAME AND LAST NAME -->
<% if contact.nil? || contact.nil? %>
<p><%= contact.email %></p>
<% else %>
<p><%= contact.email %></p>
<!-- <p><%#= contact.first_name %> <%#= contact.last_name %></p> -->
<% end %>
</strong>
</h4>
2018-08-28 17:26:33 +00:00
</div>
2018-08-28 16:18:58 +00:00
</div>
2018-08-28 17:26:33 +00:00
</div>
2018-08-28 16:18:58 +00:00
</div>
2018-08-28 17:26:33 +00:00
</div>
2018-08-28 16:18:58 +00:00
</div>
2018-08-28 17:26:33 +00:00
</div>
2018-08-28 16:18:58 +00:00
</div>
2018-08-31 10:29:24 +00:00