bibendi/twinkle

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

Summary

Maintainability
Test Coverage
= form_for @client, html: { class: "form form-horizontal client" } do |f|
  .form-group
    = f.label :name, class: 'control-label col-lg-2'
    .col-lg-10
      = f.text_field :name, class: 'form-control', required: true
    = f.error_span(:name)
  .form-group
    = f.label :active, class: 'control-label col-lg-2'
    .col-lg-10
      = f.text_field :active, class: 'form-control', required: true
    = f.error_span(:active)
  .form-group
    .col-lg-offset-2.col-lg-10
      = f.submit nil,class: 'btn btn-primary'
      = link_to t('.cancel', :default => t("helpers.links.cancel")), clients_path, :class => 'btn btn-default'