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

17 lines
813 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.%d") rescue "" %></td>
2014-07-04 03:48:33 +00:00
<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">
2014-10-02 11:58:33 +00:00
<li><%= link_to t('edit'), edit_admin_patent_path(patent) %></li>
<li><%= link_to t(:delete_), admin_patent_path(id: patent.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
2014-07-04 03:48:33 +00:00
</ul>
</div>
</td>
<td><%= patent.patent_no %></td>
<td><%= patent.patent_country %></td>
2014-10-02 11:58:33 +00:00
<td><%= patent.member_profile.name rescue "" %></td>
2014-07-04 03:48:33 +00:00
</tr>
<% end %>