Sha256: 6d34725a048e053374e12fa2a3491ef77a6fd614e098ebfda380abf5f109e60e
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
helena-1.0.0.rc1 | app/views/helena/questions/_radio_group.html.haml |
helena-0.3.3 | app/views/helena/questions/_radio_group.html.haml |