Sha256: 3ca5709b1e2fd1dd8152205c103302c9cb5d1d89f57a0f4aedacacfb677d7990

Contents?: true

Size: 1.8 KB

Versions: 2

Compression:

Stored size: 1.8 KB

Contents

<div style="color: red"><%= flash[:message] -%></div>

<div class="search_form">
<%= form_for @checkin, :html => {:method => :post}, :url => basket_checkins_path(@basket, :mode => 'list'), :remote => true do |f| -%>

  <p><%= t('activerecord.attributes.item.item_identifier') -%>:
    <%= f.text_field :item_identifier, :class => 'resource_item_identifier' -%>
    <%= f.hidden_field :librarian_id, :value => current_user.id -%>
    <%= submit_tag t('checkin.checkin') -%></p>
<%- end -%>
</div>

<table class="index">
  <tr>
    <th><%= t('page.title') -%></th>
    <th><%= t('activerecord.models.item') -%></th>
    <th><%= t('activerecord.attributes.checkout.due_date') -%></th>
    <th><%= t('activerecord.models.user') -%></th>
  </tr>

<%- @checkins.each_with_index do |checkin, i| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td>
      <%= render 'manifestations/show_index', :manifestation => checkin.item.manifestation -%>
    </td>
    <td>
      <%= link_to checkin.item.item_identifier, checkin.item -%>
      <br />
      (<%= link_to checkin.item.shelf.library.display_name.localize, checkin.item.shelf.library %>)
      <% if defined?(EnjuInterLibraryLoan) %>
        <br />
        <%- unless checkin.item.shelf.library == current_user.library -%>
          <span style="color: red"><%= link_to t('activerecord.models.inter_library_loan'), item_inter_library_loans_path(checkin.item) -%></span>
        <%- end -%>
      <% end %>
    </td>
    <td>
      <%- if checkin.checkout -%>
        <%= l(checkin.checkout.due_date, :formats => :only_date) -%>
      <%- end -%>
    </td>
    <td>
      <% if checkin.checkout.user %>
        <%= link_to checkin.checkout.user.username, checkin.checkout.user -%>
      <% end %>
    </td>
  </tr>
<%- end -%>
</table>

<%= javascript_tag("$('#checkin_item_identifier').focus()") -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_message-0.1.11 app/views/checkins/_list.html.erb
enju_message-0.0.25 app/views/checkins/_list.html.erb