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