Fix bug.
This commit is contained in:
parent
14881759b7
commit
e86b431bbb
|
@ -1,5 +1,6 @@
|
||||||
class PropertyHiresController < ApplicationController
|
class PropertyHiresController < ApplicationController
|
||||||
include Admin::PropertyHiresHelper
|
include Admin::PropertyHiresHelper
|
||||||
|
FrontendMethods = ["hire", "view_calendar", "hire_success"]
|
||||||
def index
|
def index
|
||||||
properties = Property.filter_by_categories.filter_by_tags.sort_order
|
properties = Property.filter_by_categories.filter_by_tags.sort_order
|
||||||
data = properties.collect do |property|
|
data = properties.collect do |property|
|
||||||
|
|
|
@ -460,11 +460,14 @@ protected
|
||||||
|
|
||||||
def form_label
|
def form_label
|
||||||
if self.markup == "text_area"
|
if self.markup == "text_area"
|
||||||
plc = typeD["placeholder"][I18n.locale].to_s.blank? ? '' : "(#{typeD["placeholder"][I18n.locale]})"
|
plc = typeD["placeholder"][I18n.locale].to_s.blank? ? nil : "(#{typeD["placeholder"][I18n.locale]})"
|
||||||
if plc.present?
|
label_tag(key, '' , :class=>"col-sm-#{@col} control-label muted") do
|
||||||
plc = tag(:br)+plc
|
concat (!@require.blank? ? '*'+title : title)
|
||||||
|
if plc
|
||||||
|
concat tag(:br)
|
||||||
|
concat plc
|
||||||
|
end
|
||||||
end
|
end
|
||||||
label_tag(key,(!@require.blank? ? '*'+title + plc : title + plc),:class=>"col-sm-#{@col} control-label muted")
|
|
||||||
else
|
else
|
||||||
label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-#{@col} control-label muted")
|
label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-#{@col} control-label muted")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue