Sha256: 0620c29dcd76f098d906f8b5eae0e91bcf7c689fa64686a215197e2e9894e2c9
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
- label_width = "#{80 / question.labels.count}%" .radio_matrix class="#{'helena-error' if errors.present?}" = question_label(question, dummy: true) table.table thead tr th - question.labels.each do |label| th width="#{label_width}" = label.text tbody - question.sub_questions.each do |sub_question| tr class="#{'error' if errors[sub_question.code]}" id="question_#{sub_question.code}" td = sub_question.parts.first - if errors[sub_question.code] .error= errors[sub_question.code] - question.labels.each do |label| - checked = answers[sub_question.code].to_s == label.value.to_s if answers[sub_question.code].present? - checked ||= (label.preselected? ? true : false) th width="#{label_width}" label = form.simple_fields_for :answers do |answer_form| = answer_form.radio_button sub_question.code, label.value, checked: checked .label-text= label.text
Version data entries
3 entries across 3 versions & 1 rubygems