Sha256: b03f8d968b909c41cc301b22f651cac301dd9ddce874a455e62be2430173bae2

Contents?: true

Size: 1.72 KB

Versions: 20

Compression:

Stored size: 1.72 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.listing', :model => t('activerecord.models.accept')) -%></h1>
<div id="content_list">

<div class="search_form">
  <%= form_for(:accept, :html => {:method => :get}) do |f| %>
    <p>
      <%= label_tag :item_identifier, t('activerecord.attributes.item.item_identifier') -%>:
      <%= f.search_field :item_identifier, :value => @query, :class => 'resource_item_identifier' -%>
      <%= f.submit t('page.search') -%>
    </p>
  <%- end -%>
</div>

<table class="table table-striped index">
  <tr>
    <th><%= t('activerecord.models.item') -%></th>
    <th></th>
  </tr>
  <%- @accepts.each_with_index do |accept, i| -%>
    <tr class="line<%= cycle("0", "1") -%>">
      <td>
        <% if accept.item %>
          <%= render 'manifestations/show_index', :manifestation => accept.item.manifestation %>
          <%= link_to accept.item.item_identifier, accept.item -%> / <%= accept.item.call_number %>
          (<%= link_to accept.item.shelf.library.display_name.localize, accept.item.shelf.library %> /
          <%= link_to accept.item.shelf.display_name.localize, accept.item.shelf %>)<br />
          <%=l accept.created_at %>
        <% end %>
      </td>
      <td>
        <%- if can? :delete, accept -%>
          <%= link_to t('page.destroy'), accept, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
        <%- end -%>
      </td>
    </tr>
  <%- end -%>
</table>
  <%= javascript_tag("$(function(){$('#accept_item_identifier').focus()})") %>

  <%= paginate(@accepts) %>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <li><%= link_to t('page.new', :model => t('activerecord.models.accept')), new_accept_path -%></li>
  </ul>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
enju_library-0.1.0.pre32 app/views/accepts/index.html.erb
enju_library-0.1.0.pre31 app/views/accepts/index.html.erb
enju_library-0.1.0.pre30 app/views/accepts/index.html.erb
enju_library-0.1.0.pre29 app/views/accepts/index.html.erb
enju_library-0.1.0.pre28 app/views/accepts/index.html.erb
enju_library-0.1.0.pre27 app/views/accepts/index.html.erb
enju_library-0.1.0.pre26 app/views/accepts/index.html.erb
enju_library-0.1.0.pre25 app/views/accepts/index.html.erb
enju_library-0.1.0.pre24 app/views/accepts/index.html.erb
enju_library-0.1.0.pre23 app/views/accepts/index.html.erb
enju_library-0.1.0.pre22 app/views/accepts/index.html.erb
enju_library-0.1.0.pre21 app/views/accepts/index.html.erb
enju_library-0.1.0.pre20 app/views/accepts/index.html.erb
enju_library-0.1.0.pre19 app/views/accepts/index.html.erb
enju_library-0.1.0.pre18 app/views/accepts/index.html.erb
enju_library-0.1.0.pre17 app/views/accepts/index.html.erb
enju_library-0.1.0.pre16 app/views/accepts/index.html.erb
enju_library-0.1.0.pre15 app/views/accepts/index.html.erb
enju_library-0.1.0.pre14 app/views/accepts/index.html.erb
enju_library-0.1.0.pre13 app/views/accepts/index.html.erb