Fix bug.
This commit is contained in:
parent
1d94b4dfed
commit
c913d5a346
|
@ -445,11 +445,13 @@ protected
|
|||
|
||||
def form_label
|
||||
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
|
||||
concat (!@require.blank? ? '*'+title : title)
|
||||
concat tag(:br)
|
||||
concat plc
|
||||
if nil
|
||||
concat tag(:br)
|
||||
concat plc
|
||||
end
|
||||
end
|
||||
else
|
||||
label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-2 control-label muted")
|
||||
|
|
Loading…
Reference in New Issue