46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
<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>
|
|
<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>
|
|
<a href="<%= show_booking_details_admin_property_hire_path(p_hire, :page => params[:page]) %>" class="btn btn-info">View</a>
|
|
<% if p_hire.passed %>
|
|
<a href="<%= pass_booking_admin_property_hire_path(p_hire, :page => params[:page], :status => "reject", :ref => "index") %>" class="btn btn-danger">Reject</a>
|
|
<% else %>
|
|
<a href="<%= pass_booking_admin_property_hire_path(p_hire, :page => params[:page], :status => "accept", :ref => "index") %>" class="btn btn-success">Accept</a>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<div class="bottomnav clearfix">
|
|
<a href="<%= admin_property_hires_path %>" class="btn btn-warning">Back</a>
|
|
<%= content_tag(:div, paginate(@bookings), class: "pagination pagination-centered") %>
|
|
</div> |