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.pre28 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre27 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre26 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre25 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre24 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre23 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre22 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre21 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre20 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre19 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre18 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre17 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre16 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre15 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre14 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre13 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre12 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre11 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre10 app/views/checkouts/edit.html.erb
enju_circulation-0.1.0.pre9 app/views/checkouts/edit.html.erb