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