Sha256: a145294e9017fbbbfea78c470156cf796f530d2f324e85533e8cd836735b4174
Contents?: true
Size: 1.89 KB
Versions: 4
Compression:
Stored size: 1.89 KB
Contents
<div id="content_detail" class="ui-corner-all ui-widget-content"> <h1 class="title"><%= t('page.editing', 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 t('activerecord.models.user') -%> <%= link_to @reserve.user.username, @reserve.user.profile -%> (<%= @reserve.user.profile.user_number %>) </div> <% unless @reserve.completed? %> <div class="field"> <%= f.label :item_identifier %><br /> <%= f.text_field :item_identifier %> </div> <% end %> <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> <p> <strong><%= t('activerecord.attributes.reserve.state') -%>:</strong> <%= i18n_state(@reserve.current_state) -%> </p> <% unless @reserve.errors[:base].empty? %> <div class="field"> <%= f.label :force_retaining %><br /> <%= f.check_box :force_retaining %> </div> <% end %> <div class="actions"> <% if @reserve.retained? %> <%= f.submit confirm: "#{t('reserve.attempt_to_update_retained_reservation')} #{t('page.continue')}" %> <% else %> <%= f.submit %> <% end %> </div> <%- end -%> </div> </div> <div id="submenu" class="ui-corner-all ui-widget-content"> <ul> <li><%= link_to t('page.show'), @reserve -%></li> <li><%= link_to t('page.back'), :back -%></li> </ul> </div>
Version data entries
4 entries across 4 versions & 1 rubygems