Fix bug.
This commit is contained in:
parent
456f2b9ece
commit
d8adf49ee0
|
@ -461,9 +461,10 @@ protected
|
|||
def form_label
|
||||
if self.markup == "text_area"
|
||||
plc = typeD["placeholder"][I18n.locale].to_s.blank? ? '' : "(#{typeD["placeholder"][I18n.locale]})"
|
||||
"<span style='margin-right: 0.5em;'>"+
|
||||
label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-#{@col} control-label muted")+
|
||||
tag(:br)+"#{plc}</span>"
|
||||
if plc.present?
|
||||
plc = tag(:br)+plc
|
||||
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