forked from saurabh/personal-honor
16 lines
791 B
Plaintext
16 lines
791 B
Plaintext
<% @honors.each do |honor| %>
|
|
<tr id="<%= dom_id honor %>" class="<%= honor.is_hidden ? "checkHide" : "" %>">
|
|
<td><%= honor.year %></td>
|
|
<td>
|
|
<%= link_to honor.award_name, OrbitHelper.url_to_plugin_show(honor.to_param,'personal_honor'), target: "blank"%>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills hide">
|
|
<li><%= link_to t('edit'), '/admin/members/'+honor.member_profile.to_param+'/honors/'+honor.id+'/edit' %></li>
|
|
<li><%= link_to t(:delete_), admin_honor_path(id: honor.id, member_profile_id: honor.member_profile.id), method: :delete, remote: true, data: { confirm: t('sure?') } %></li>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td><%= honor.awarding_unit %></td>
|
|
<td><%= honor.member_profile.name %></td>
|
|
</tr>
|
|
<% end %> |