2018-01-17 07:53:58 +00:00
|
|
|
<%= csrf_meta_tag %>
|
2017-01-20 09:02:50 +00:00
|
|
|
<h3><%= @booking.property.title %></h3>
|
|
|
|
<table class="table main-list">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><%= t("property_hire.hiring_person_name") %></td>
|
|
|
|
<td><%= @booking.hirer_name %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= t("property_hire.hiring_person_number") %></td>
|
|
|
|
<td><%= @booking.hiring_person_number %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= t("property_hire.hiring_person_email") %></td>
|
|
|
|
<td><%= @booking.hiring_person_email %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= t("property_hire.period") %></td>
|
|
|
|
<td><%= @booking.period %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= t("property_hire.reason_for_hire") %></td>
|
|
|
|
<td><%= @booking.reason_for_hire %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= t("property_hire.note_for_hire") %></td>
|
|
|
|
<td><%= @booking.note_for_hire %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= t("property_hire.passed") %></td>
|
|
|
|
<td>
|
|
|
|
<% if @booking.passed %>
|
|
|
|
<span class="badge badge-success">Yes</span>
|
|
|
|
<% else %>
|
|
|
|
<span class="badge badge-important">No</span>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<a href="<%= admin_property_hire_path(@booking.property, :page => params[:page]) %>" class="btn btn-warning">Back</a>
|
|
|
|
<% if @booking.passed %>
|
|
|
|
<a href="<%= pass_booking_admin_property_hire_path(@booking, :status => "reject") %>" class="btn btn-danger">Reject</a>
|
|
|
|
<% else %>
|
|
|
|
<a href="<%= pass_booking_admin_property_hire_path(@booking, :status => "accept") %>" class="btn btn-success">Accept</a>
|
|
|
|
<% end %>
|
2018-01-17 07:53:58 +00:00
|
|
|
<a href="<%= delete_booking_details_admin_property_hire_path(@booking, :page => params[:page]) %>" class="btn btn-danger" data-method="delete" data-confirm="Are you sure?">Delete</a>
|
2017-01-20 09:02:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|