Sha256: 58e4285c3f1b9319b44bec5a2b6d8add63dddcff61c9e8f4ac3cbeb24aca9621

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<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 ui-widget-content">
  <%= 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

1 entries across 1 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre36 app/views/reserves/_new_user.html.erb