Sha256: 129abbf79f51742190d1d75e4829ec861b5be7a6c08137eaf198e68f66349ccb

Contents?: true

Size: 540 Bytes

Versions: 9

Compression:

Stored size: 540 Bytes

Contents

.radio_group.form-group{ class: "#{'has-error' if errors[question.code]}" }
  %label
    != question.question_text
    = ' *' if question.required
  - 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]
    .help-block.text-danger= errors[question.code]

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
helena-1.3.1 app/views/helena/questions/_radio_group.html.haml
helena-1.3.0 app/views/helena/questions/_radio_group.html.haml
helena-1.1.0 app/views/helena/questions/_radio_group.html.haml
helena-1.0.3 app/views/helena/questions/_radio_group.html.haml
helena-1.0.2 app/views/helena/questions/_radio_group.html.haml
helena-1.0.1 app/views/helena/questions/_radio_group.html.haml
helena-1.0.0.rc4 app/views/helena/questions/_radio_group.html.haml
helena-1.0.0.rc3 app/views/helena/questions/_radio_group.html.haml
helena-1.0.0.rc2 app/views/helena/questions/_radio_group.html.haml