Sha256: 47cc30d7ddd03699f24d25a3b1e339a6379301bc788eef5516088b661d68c78e

Contents?: true

Size: 1.69 KB

Versions: 16

Compression:

Stored size: 1.69 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) do |f| -%>
  <%= f.error_messages -%>

  <div class="field">
    <%- if @reserve.manifestation -%>
      <%= render 'manifestations/title', :manifestation => @reserve.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 :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>

  <% if current_user.has_role?('Librarian') %>
    <div class="field">
      <%= f.label t('activerecord.attributes.user.user_number') -%><br />
      <%= f.text_field :user_number, :class => 'resource_user_number' -%>
    </div>
  <% else %>
    <%= f.hidden_field :user_number, :class => 'resource_user_number' -%>
  <% end %>

  <div class="actions">
    <%= f.submit %>
  </div>
<%- end -%>
<%= javascript_tag("$('#reserve_user_number').focus().select();") -%>
</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')), reserves_path -%></li>
    <%- if @reserve.manifestation -%>
      <li><%= link_to t('page.showing', :model => t('activerecord.models.manifestation')), @reserve.manifestation -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre11 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre10 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre9 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre8 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre7 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre6 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre5 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre4 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre3 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre2 app/views/reserves/_new.html.erb
enju_circulation-0.1.0.pre app/views/reserves/_new.html.erb
enju_circulation-0.0.71 app/views/reserves/_new.html.erb
enju_circulation-0.0.70 app/views/reserves/_new.html.erb
enju_circulation-0.0.69 app/views/reserves/_new.html.erb
enju_circulation-0.0.68 app/views/reserves/_new.html.erb
enju_circulation-0.0.67 app/views/reserves/_new.html.erb