Sha256: 82f4733c672c5a075415129bb743e0195e5bbe44b85d0a2b21b0ac9591a91235

Contents?: true

Size: 1.75 KB

Versions: 113

Compression:

Stored size: 1.75 KB

Contents

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

  <%= render 'manifestations/title', :manifestation => @checkout.item.manifestation if @checkout.item -%>

<h3><%= t('checkout.renewal') -%></h3>
<%- if @checkout.checkout_renewable? -%>
  <%= form_for(@checkout) do |f| -%>
    <%= t('checkout.new_due_date') -%>: <%= l(@new_due_date, :format => :only_date) if @new_due_date -%>
    <%= f.hidden_field :due_date, :value => @new_due_date -%>
    <br />
    <%= f.submit %>
  <%- end -%>
<%- else -%>
  <div class="field"><%= t('checkout.this_item_cant_be_renewed') -%></div>
<%- end -%>

<% if current_user.has_role?('Librarian') %>
  <h3><%= t('checkout.editing_due_date') -%></h3>

  <%= form_for(@checkout) do |f| -%>
    <%= f.error_messages -%>

    <div class="field">
      <%= f.label :due_date -%>
      <%= f.hidden_field :user_id -%>
      <%= f.hidden_field :item_id -%>
      <%= f.text_field :due_date, :value => @checkout.due_date.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
    </div>
    <div class="field">
      <%= t('checkout.renewal_count') -%>: <%= f.text_field :checkout_renewal_count, :class => 'resource_integer' -%>
    </div>

    <div class="actions">
      <%= f.submit %>
    </div>
  <%- end -%>
<%- end -%>
</div>
</div>

<div id="submenu" class="ui-corner-all">
  <%= render 'manifestations/book_jacket', :manifestation => @checkout.item.manifestation if @checkout.item -%>
  <ul>
    <li><%= link_to t('page.show'), @checkout -%></li>
    <% if @checkout.user %>
      <li><%= link_to t('page.back'), user_checkouts_path(@checkout.user) -%></li>
    <% end %>
  </ul>
</div>

Version data entries

113 entries across 113 versions & 2 rubygems

Version Path
enju_message-0.1.4 app/views/checkouts/edit.html.erb
enju_circulation-0.0.45 app/views/checkouts/edit.html.erb
enju_circulation-0.0.43 app/views/checkouts/edit.html.erb
enju_circulation-0.0.42 app/views/checkouts/edit.html.erb
enju_circulation-0.0.41 app/views/checkouts/edit.html.erb
enju_circulation-0.0.40 app/views/checkouts/edit.html.erb
enju_circulation-0.0.39 app/views/checkouts/edit.html.erb
enju_circulation-0.0.38 app/views/checkouts/edit.html.erb
enju_circulation-0.0.37 app/views/checkouts/edit.html.erb
enju_circulation-0.0.36 app/views/checkouts/edit.html.erb
enju_circulation-0.0.35 app/views/checkouts/edit.html.erb
enju_circulation-0.0.34 app/views/checkouts/edit.html.erb
enju_message-0.0.19 app/views/checkouts/edit.html.erb
enju_message-0.1.1 app/views/checkouts/edit.html.erb
enju_circulation-0.0.33 app/views/checkouts/edit.html.erb
enju_circulation-0.0.32 app/views/checkouts/edit.html.erb
enju_message-0.1.0 app/views/checkouts/edit.html.erb
enju_circulation-0.0.31 app/views/checkouts/edit.html.erb
enju_circulation-0.0.30 app/views/checkouts/edit.html.erb
enju_circulation-0.0.29 app/views/checkouts/edit.html.erb