<%= csrf_meta_tag %>
<%= t("property_hire.table") %> <%= t("property_hire.calendar") %>

<% if params[:type] == "Calendar" %> <%= content_for :page_specific_css do %> <% ["basic/bootstrap-datetimepicker.css","property_hire_fullcalendar.css","property_hire_calendar"].each do |css| %> <%= stylesheet_link_tag css %> <% end %> <% end %>

<% else %> <% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @bookings.each do |p_hire| %> <% end %>
<%= p_hire.hirer_name %> <%= p_hire.reason_for_hire.to_s + p_hire.tmp_reason_for_hire %> <%= p_hire.hiring_person_number %> <%= p_hire.period %> <% if p_hire.passed %> Yes <% else %> No <% end %> <% if can_edit_or_delete?(p_hire.property) %> <%= t("property_hire.edit") %> <%= t("property_hire.view") %> <% if p_hire.passed %> "index") %>" class="btn btn-warning"><%= t("property_hire.reject") %> <% else %> "index") %>" class="btn btn-success"><%= t("property_hire.accept") %> <% end %> <%= t("property_hire.delete") %> <% end %>
Back <%= content_tag(:div, paginate(@bookings), class: "pagination pagination-centered") %>
<% end %>