personal_patent/app/views/admin/patents/_patents.html.erb

17 lines
814 B
Plaintext
Raw Normal View History

2024-01-23 00:11:21 +00:00
<% @patents.each do |patent| %>
<tr id="<%= dom_id patent %>" class="with_action">
<td> <%= patent.year %> </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,:page => params[:page]) %></li>
<li><%= link_to t(:delete_), admin_patent_path(id: patent.id, :page => params[:page]), method: :delete, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td> <%= patent.patent_type.title rescue "" %> </td>
<td> <%= patent.publication_date.strftime('%Y/%m/%d') rescue "" %> </td>
<td> <%= patent.display_field("member_profile").html_safe rescue "" %> </td>
</tr>
<% end %>