Sha256: 74e8531bd910cdbb367de284709e05cf50608aadc0b0437f54aea3bdddcfa727

Contents?: true

Size: 1.85 KB

Versions: 77

Compression:

Stored size: 1.85 KB

Contents

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

<%= form_for(@reserve, :url => user_reserves_path(@user)) do |f| -%>
  <%= f.error_messages -%>

  <div class="field">
    <%- if @item -%>
      <%= render 'manifestations/title', :manifestation => @reserve.manifestation -%>
      (<%= link_to @item.item_identifier, @item -%>)
      <%= f.hidden_field :manifestation_id, :value => @item.manifestation.id -%>
      <%= f.hidden_field :item_id, :value => @item.id -%>
    <%- elsif @manifestation -%>
      <%= render 'manifestations/title', :manifestation => @manifestation -%>
      <%= f.hidden_field :manifestation_id -%>
    <%- else -%>
      <%= f.label t('activerecord.models.manifestation') -%><br />
      <%= f.text_field :manifestation_id -%>
    <%- end -%>
  </div>

  <div class="field">
    <%= f.label t('activerecord.models.user') -%>
    <%= link_to @reserve.user.username, @reserve.user -%>
    (<%= @reserve.user.user_number %>)
    <%= f.hidden_field :user_number, :value => @user.user_number -%>
  </div>

  <div class="field">
    <%= f.label :expired_at -%><br />
    <%= f.text_field :expired_at, :value => @reserve.expired_at.try(:strftime, "%Y-%m-%d"), :class => 'date_field', :placeholder => "#{t('page.example')}: 2011-04-12"-%>
  </div>

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

<div id="submenu" class="ui-corner-all">
  <%= render 'manifestations/book_jacket', :manifestation => @reserve.manifestation -%>
  <ul>
    <li><%= link_to t('page.listing', :model => t('activerecord.models.reserve')), user_reserves_path(@reserve.user) -%></li>
    <%- if @manifestation -%>
      <li><%= link_to t('page.showing', :model => t('activerecord.models.manifestation')), @manifestation -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre35 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre34 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre33 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre32 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre31 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre30 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre29 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre28 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre27 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre26 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre25 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre24 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre23 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre22 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre21 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre20 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre19 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre18 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre17 app/views/reserves/_new_user.html.erb
enju_circulation-0.1.0.pre16 app/views/reserves/_new_user.html.erb