leonhooijer/zadok

View on GitHub
app/views/zadok/form/fields/_boolean.html.slim

Summary

Maintainability
Test Coverage
.form-group
  = form.label attr
  br
  - [true, false].each do |option|
    .form-check.form-check-inline
      = form.radio_button(attr, option, class: "form-check-input")
      = form.label(attr,
                   t("zadok.options").fetch(option.to_s.to_sym),
                   value: option,
                   class: "form-check-label")