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_circulation-0.1.0.pre8 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre7 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre6 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre5 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre4 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre3 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre2 app/views/checkouts/edit.html.erb
enju_circulation-0.0.69 app/views/checkouts/edit.html.erb
enju_circulation-0.0.68 app/views/checkouts/edit.html.erb
enju_circulation-0.0.67 app/views/checkouts/edit.html.erb
enju_circulation-0.0.66 app/views/checkouts/edit.html.erb
enju_circulation-0.0.65 app/views/checkouts/edit.html.erb
enju_message-0.1.9 app/views/checkouts/edit.html.erb
enju_circulation-0.0.64 app/views/checkouts/edit.html.erb
enju_message-0.0.24 app/views/checkouts/edit.html.erb
enju_circulation-0.0.63 app/views/checkouts/edit.html.erb
enju_circulation-0.0.62 app/views/checkouts/edit.html.erb
enju_circulation-0.0.61 app/views/checkouts/edit.html.erb
enju_circulation-0.0.60 app/views/checkouts/edit.html.erb
enju_circulation-0.0.59 app/views/checkouts/edit.html.erb