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

Version Path
enju_biblio-0.1.0.pre55 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre54 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre53 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre52 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre51 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre50 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre49 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre48 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre47 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre46 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre45 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre44 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre43 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre42 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre41 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre40 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre39 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre38 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre37 app/views/items/index.mobile.erb
enju_biblio-0.1.0.pre36 app/views/items/index.mobile.erb