Sha256: 1de1a16c8e35d07bdbab62275a1e9b6f1b29c2f82f7da7a890fed2c332c0b9dd

Contents?: true

Size: 528 Bytes

Versions: 4

Compression:

Stored size: 528 Bytes

Contents

fieldset.radio_group id="question_#{question.code}" class="#{'helena-error' if errors[question.code]}"
  legend = question_label(question, dummy: true)

  - question.labels.each do |label|
    .radio
      label
        - checked = (answers[question.code].to_s == label.value.to_s) || label.preselected
        = form.simple_fields_for :answers do |answer_form|
          = answer_form.radio_button question.code, label.value, checked: checked
        = label.text
  - if errors[question.code]
    .error= errors[question.code]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
helena-2.1.0 app/views/helena/questions/_radio_group.html.slim
helena-2.0.2 app/views/helena/questions/_radio_group.html.slim
helena-2.0.1 app/views/helena/questions/_radio_group.html.slim
helena-2.0.0 app/views/helena/questions/_radio_group.html.slim