Update property_hires_controller.rb
This commit is contained in:
parent
cb4065aef7
commit
3f7d044539
|
@ -69,7 +69,7 @@ class PropertyHiresController < ApplicationController
|
||||||
"value" => property.note
|
"value" => property.note
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if !property_hire.property_number.blank?
|
if !property.property_number.blank?
|
||||||
data << {
|
data << {
|
||||||
"header" => t("property_hire.property_number"),
|
"header" => t("property_hire.property_number"),
|
||||||
"value" => property.property_number
|
"value" => property.property_number
|
||||||
|
@ -79,7 +79,7 @@ class PropertyHiresController < ApplicationController
|
||||||
"header" => t("property_hire.can_be_hired"),
|
"header" => t("property_hire.can_be_hired"),
|
||||||
"value" => (property.can_be_hired ? "<span class='label label-success'>Yes</span>" : "<span class='label label-danger'>No</span>")
|
"value" => (property.can_be_hired ? "<span class='label label-success'>Yes</span>" : "<span class='label label-danger'>No</span>")
|
||||||
}
|
}
|
||||||
if !property_hire.purchase_date.to_s.blank?
|
if !property.purchase_date.to_s.blank?
|
||||||
data << {
|
data << {
|
||||||
"header" => t("property_hire.purchase_date"),
|
"header" => t("property_hire.purchase_date"),
|
||||||
"value" => property.purchase_date.strftime("%Y-%m-%d")
|
"value" => property.purchase_date.strftime("%Y-%m-%d")
|
||||||
|
|
Loading…
Reference in New Issue