personal-diploma/app/views/admin/diplomas/_diploma.html.erb

17 lines
776 B
Plaintext
Raw Normal View History

2014-07-02 03:54:14 +00:00
<% @diplomas.each do |diploma| %>
<tr id="<%= dom_id diploma %>" class="<%= diploma.is_hidden ? "checkHide" : "" %>">
<td><%= diploma.duration %></td>
<td>
2014-07-04 04:12:14 +00:00
<%= link_to diploma.school_name, OrbitHelper.url_to_plugin_show(diploma.to_param,'personal_diploma'), target: "blank"%>
2014-07-02 03:54:14 +00:00
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_diploma_path(diploma) %></li>
<li><%= link_to t(:delete_), admin_diploma_path(id: diploma.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
2014-07-02 03:54:14 +00:00
</ul>
</div>
</td>
<td><%= diploma.department %></td>
<td><%= diploma.degree %></td>
2015-01-09 07:42:05 +00:00
<td><%= diploma.member_profile.name rescue "" %></td>
2014-07-02 03:54:14 +00:00
</tr>
<% end %>