forked from saurabh/personal-lab
15 lines
652 B
Plaintext
15 lines
652 B
Plaintext
<% @labs.each do |lab| %>
|
|
<tr id="<%= dom_id lab %>" class="<%= lab.is_hidden ? "checkHide" : "" %>">
|
|
<td><%= lab.year %></td>
|
|
<td>
|
|
<%= link_to lab.lab_title, '', target: "blank"%>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills hide">
|
|
<li><%= link_to t('edit'), '/admin/members/'+lab.member_profile.to_param+'/labs/'+lab.id+'/edit' %></li>
|
|
<li><%= link_to t(:delete_), admin_lab_path(id: lab.id, member_profile_id: lab.member_profile.id), method: :delete, remote: true, data: { confirm: t('sure?') } %></li>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td><%= lab.location %></td>
|
|
</tr>
|
|
<% end %> |