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