lenawu/mak-169

View on GitHub
app/views/contacts/new.html.haml

Summary

Maintainability
Test Coverage
%div{:class => "hero"}



<div align="center">

.container2
  %h1 Contact
  = simple_form_for @contact, :html => {:class => 'form-horizontal' } do |f|
    = f.input :name, :required => true
    = f.input :email, :required => true
    = f.input :message, :as => :text, :required => false, :input_html => {:rows => 10}
    .hidden
      = f.input :nickname, :hint => 'Leave this field blank!'
    .form-actions
      = f.button :submit, 'Send message', :class=> "btn btn-primary"
</div>