Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #745 from YaleSTC/715_redo_316
Browse files Browse the repository at this point in the history
reimplement cancel path reroute
  • Loading branch information
orenyk committed Jul 17, 2014
2 parents 8c57ee9 + 4fb91ae commit c0211c0
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions app/views/reservations/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<%= simple_form_for @reservation, :html => { :class => "form-horizontal" } do |f| %>
<%= f.error_notification %>
<%= f.input :fake_reserver_id, :as => :autocomplete, :url => autocomplete_user_last_name_reservations_path,
:id_element => '#reservation_reserver_id',
:id_element => '#reservation_reserver_id',
label: "Reserver", placeholder: "Start typing a name or login", input_html: {value: @reservation.reserver.name} %>
<%= f.input :reserver_id, as: :hidden %>

<div class='control-group'>
<label class='control-label'>* Start date</label>
<div class="controls">
Expand All @@ -19,21 +19,21 @@
</div>
<% message = '' %>
<% if @reservation.equipment_object %>
<% message = "Be aware that changing the reservation equipment item may have an effect on another reservation. \
If you set this reservation's equipment item to an item that has already been checked out, the \
reservations will be swapped." %>
<div class='control-group'>
<label class='control-label'>Item</label>
<div class = "controls">
<%= select_tag :equipment_object,
options_for_select(@option_array),
placeholder: @reservation.equipment_object.name,
class: 'dropdown dropselect',
prompt: '', width: 80 %>
</div>
</div>
<% message = "Be aware that changing the reservation equipment item may have an effect on another reservation. \
If you set this reservation's equipment item to an item that has already been checked out, the \
reservations will be swapped." %>
<div class='control-group'>
<label class='control-label'>Item</label>
<div class = "controls">
<%= select_tag :equipment_object,
options_for_select(@option_array),
placeholder: @reservation.equipment_object.name,
class: 'dropdown dropselect',
prompt: '', width: 80 %>
</div>
</div>
<% end %>

<%= f.input :notes, :as => :text, :hint => "#{render :partial => 'shared/markdown_button'}" %>
<%= f.button :wrapped, :cancel => reservations_path, :confirm => message %>
<%= f.button :wrapped, :cancel => reservation_path(@reservation), :confirm => message %>
<% end %>

0 comments on commit c0211c0

Please sign in to comment.