Sha256: 3dc513d21849338eb67c8aba93fd2a32acc8d0ed1cc301303d70f31188fb8179
Contents?: true
Size: 557 Bytes
Versions: 4
Compression:
Stored size: 557 Bytes
Contents
.short_text class="#{'helena-error' if errors[question.code]}" = question_label(question) = form.simple_fields_for :answers do |answer_form| - params = { value: answers[question.code], id: "question_#{question.code}" } - params = params.merge(aria: { describedby: "#{question.code}_error" }, invalid: true) if errors[question.code] - params = params.merge(required: true) if question.required = answer_form.text_field(question.code, params) - if errors[question.code] .error id="#{question.code}_error" = errors[question.code]
Version data entries
4 entries across 4 versions & 1 rubygems