This commit is contained in:
BoHung Chiu 2022-10-22 16:04:06 +08:00
parent 1d94b4dfed
commit c913d5a346
1 changed files with 5 additions and 3 deletions

View File

@ -445,11 +445,13 @@ 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? ? nil : "(#{typeD["placeholder"][I18n.locale]})"
label_tag(key, '' , :class=>"col-sm-2 control-label muted") do label_tag(key, '' , :class=>"col-sm-2 control-label muted") do
concat (!@require.blank? ? '*'+title : title) concat (!@require.blank? ? '*'+title : title)
concat tag(:br) if nil
concat plc concat tag(:br)
concat plc
end
end end
else else
label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-2 control-label muted") label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-2 control-label muted")