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

17 lines
860 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" : "" %>">
2014-08-01 04:22:47 +00:00
<td><%= diploma.member_profile.name %></td>
2014-07-02 03:54:14 +00:00
<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'), '/admin/members/'+diploma.member_profile.to_param+'/diplomas/'+diploma.id+'/edit' %></li>
<li><%= link_to t(:delete_), admin_diploma_path(id: diploma.id, member_profile_id: diploma.member_profile.id), method: :delete, remote: true, data: { confirm: t('sure?') } %></li>
</ul>
</div>
</td>
<td><%= diploma.department %></td>
<td><%= diploma.degree %></td>
</tr>
<% end %>