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

17 lines
810 B
Plaintext

<% @patents.each do |patent| %>
<tr id="<%= dom_id patent %>" class="<%= patent.is_hidden ? "checkHide" : "" %>">
<td><%= patent.publish_date.strftime("%Y.%m") rescue "" %></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'), 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>
</ul>
</div>
</td>
<td><%= patent.patent_no %></td>
<td><%= patent.patent_country %></td>
<td><%= patent.member_profile.name rescue "" %></td>
</tr>
<% end %>