Sha256: fe91aabc515059c1e07377c8a2c1962e1f38bd3be77e3c6cb9918aea161acd6c
Contents?: true
Size: 1.93 KB
Versions: 32
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? :delete, item -%> <td><%= link_to t('page.edit'), edit_item_path(item) -%></td> <%- end -%> </tr> <%- end -%> </table> <%= paginate(@items) -%> </div> </div>
Version data entries
32 entries across 32 versions & 1 rubygems