# File ValidForm_html.rb, line 201 def label_tohtml(indentLevel=0) htmlClass=[] htmlClass << 'reqd' if @validationRules[:required] htmlClass << 'failedvalidation' if @errors @label ? ("\t"*indentLevel << %{<label id="lbl_#@id" for="#@id"#{" class=\"#{htmlClass.join(' ')}\"" unless htmlClass.empty?}>#@label</label>\n}) : '' end