2018-02-05 09:15:50 +00:00
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr class="sort-header">
|
|
|
|
<% @table_fields.each do |f| %>
|
|
|
|
<%= thead(f) %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @bookings.each do |p_hire| %>
|
|
|
|
<tr>
|
2020-05-28 09:30:03 +00:00
|
|
|
<td>
|
|
|
|
<%= p_hire.property.title rescue nil %>
|
|
|
|
</td>
|
2018-02-05 09:15:50 +00:00
|
|
|
<td>
|
|
|
|
<%= p_hire.hirer_name %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%= p_hire.reason_for_hire %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%= p_hire.hiring_person_number %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<%= p_hire.period %>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<% if p_hire.passed %>
|
|
|
|
<span class="badge badge-success">Yes</span>
|
|
|
|
<% else %>
|
|
|
|
<span class="badge badge-important">No</span>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td>
|
2024-07-11 07:42:16 +00:00
|
|
|
<%
|
|
|
|
=begin%>
|
|
|
|
<a href="<%= show_booking_details_admin_property_hire_path(p_hire, :page => params[:page]) %>" class="btn btn-info">View</a>
|
|
|
|
<%
|
|
|
|
=end%>
|
2018-02-05 09:15:50 +00:00
|
|
|
<a href="<%= delete_booking_details_admin_property_hire_path(p_hire, :page => params[:page]) %>" class="btn btn-danger" data-method="delete" data-confirm="Are you sure?">Delete</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div class="bottomnav clearfix">
|
|
|
|
<%= content_tag(:div, paginate(@bookings), class: "pagination pagination-centered") %>
|
|
|
|
</div>
|