f96q/kptboard

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

Summary

Maintainability
Test Coverage
=form_for @retrospective, html: {class: 'form-group row'} do |f|
  =render 'error_alert', object: @retrospective

  .form-group.row
    %label.col-sm-2.form-control-label= Retrospective.human_attribute_name(:title)
    .col-sm-10
      = f.text_field :title, class: 'form-control form-control-sm'

  .form-group.row
    .col-sm-offset-2.col-sm-10
      %button.btn.btn-primary{type: 'submit'}= t('views.retrospectives.save')