Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Equipment Inventory</h1>
- <% if @instruments.blank? %>
- <p>There are not any equipment currently in the system.</p>
- <% else %>
- <p>There are the currently available equipment in our system: </p>
- <% @instruments.each do |c| %>
- <%= link_to c.name, {:action => 'show', :id => c.id} -%>
- <%= start_form_tag :action => 'check_availability' %>
- <%= calendar_date_select :c, :check_date %>
- <%= button_to 'Reserve', {:action => "check_availability", :id => c.id }%>
- <%= end_form_tag %>
- <hr />
- <% end %>
- <% end %>
Add Comment
Please, Sign In to add comment