add property title
This commit is contained in:
parent
a8952495f4
commit
7e3141d4f0
|
@ -15,7 +15,7 @@ class Admin::PropertyHiresController < OrbitAdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def my_bookings
|
def my_bookings
|
||||||
@table_fields = ["property_hire.hiring_person_name", "property_hire.reason_for_hire", "property_hire.hiring_person_number", "property_hire.period", "property_hire.passed", :actions]
|
@table_fields = ["property_hire.title","property_hire.hiring_person_name", "property_hire.reason_for_hire", "property_hire.hiring_person_number", "property_hire.period", "property_hire.passed", :actions]
|
||||||
@bookings = PHire.where(:hiring_person_id => current_user.member_profile.id.to_s).desc(:created_at).page(params[:page]).per(10)
|
@bookings = PHire.where(:hiring_person_id => current_user.member_profile.id.to_s).desc(:created_at).page(params[:page]).per(10)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @bookings.each do |p_hire| %>
|
<% @bookings.each do |p_hire| %>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<%= p_hire.property.title rescue nil %>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<%= p_hire.hirer_name %>
|
<%= p_hire.hirer_name %>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue