Sha256: 98a14ed7193e506f19a6f52e2d6c1161274f8567f95f613bc01f8b47a67df068
Contents?: true
Size: 1.93 KB
Versions: 12
Compression:
Stored size: 1.93 KB
Contents
<div data-role="header"> <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.item')) -%></h1> </div> <div data-role="content"> <%= render 'manifestations/title', :manifestation => @manifestation if @manifestation -%> <div data-role="detail"> <%= form_for :items, :url => items_path, :html => {:method => 'get'} do -%> <p> <%= label_tag :search_form_top, t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%> <%= submit_tag t('page.search') -%> </p> <%- end -%> <table class="table table-striped index"> <tr> <th><%= t('activerecord.attributes.item.item_identifier') -%></th> <th><%= t('activerecord.attributes.item.call_number') -%></th> <th><%= t('activerecord.models.manifestation') -%></th> <th><%= t('activerecord.models.library') -%></th> <th><%= t('activerecord.models.shelf') -%></th> <th><%= t('activerecord.models.circulation_status') -%></th> <%- if user_signed_in? -%> <th></th> <%- end -%> </tr> <%- @items.each do |item| -%> <tr class="line<%= cycle("0", "1") -%>"> <td> <%- unless item.item_identifier? -%> (<%= link_to t('item.no_number'), item -%>) <%- else -%> <%= link_to item.item_identifier, item -%> <%- end -%> </td> <td><%= item.call_number -%></td> <td> <%= render 'manifestations/show_index', :manifestation => item.manifestation -%> </td> <td><%= link_to item.shelf.library.display_name.localize, item.shelf.library -%></td> <td><%= link_to item.shelf_display_name.localize, item.shelf -%></td> <td><%= item.circulation_status.display_name.localize -%></td> <%- if can? :destroy, item -%> <td><%= link_to t('page.edit'), edit_item_path(item) -%></td> <%- end -%> </tr> <%- end -%> </table> <%= paginate(@items) -%> </div> </div>
Version data entries
12 entries across 12 versions & 1 rubygems