ck3g/homebugh

View on GitHub
app/views/categories/_form.html.haml

Summary

Maintainability
Test Coverage
= simple_form_for category, html: { class: "form-horizontal" } do |f|
  = f.input :name, input_html: { class: 'medium-input' }
  = f.association :category_type, collection: collection_of_types, input_html: { class: 'medium-input' }
  .form-group
    .col-sm-offset-2.col-sm-10
      .checkbox
        = f.input :inactive, label: false, inline_label: true
  .form-group.action-buttons
    .col-sm-offset-2.col-sm-10
      = f.button :submit, class: "btn btn-primary", id: :category_submit
      = link_to t("common.back"), categories_path, class: "btn"