This commit is contained in:
BoHung Chiu 2021-09-24 12:37:23 +08:00
parent 456f2b9ece
commit d8adf49ee0
1 changed files with 4 additions and 3 deletions

View File

@ -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