Sha256: 4c816a4d00ac6f1eb760034e772666dcbc03c589aef4f046f2a3ba1d19e2de07

Contents?: true

Size: 1.7 KB

Versions: 24

Compression:

Stored size: 1.7 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("$(function(){$('#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

24 entries across 24 versions & 1 rubygems

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