personal-patent/app/views/admin/patents/_patent.html.erb

17 lines
878 B
Plaintext
Raw Normal View History

2014-07-04 03:48:33 +00:00
<% @patents.each do |patent| %>
<tr id="<%= dom_id patent %>" class="<%= patent.is_hidden ? "checkHide" : "" %>">
<td><%= patent.publish_date.strftime("%Y.%m") %></td>
<td>
<%= link_to patent.patent_title, OrbitHelper.url_to_plugin_show(patent.to_param,'personal_patent').to_s, target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), '/admin/members/'+patent.member_profile.to_param+'/patents/'+patent.id+'/edit' %></li>
<li><%= link_to t(:delete_), admin_patent_path(id: patent.id, member_profile_id: patent.member_profile.id), method: :delete, remote: true, data: { confirm: t('sure?') } %></li>
</ul>
</div>
</td>
<td><%= patent.patent_no %></td>
<td><%= patent.patent_country %></td>
<td><%= patent.member_profile.name %></td>
</tr>
<% end %>