jjeremydiaz/OpenHouse

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

Summary

Maintainability
Test Coverage
%div.signup-box
  %p.center= flash[:notice] if flash[:notice]
  %h1.center Create Your Account
  %h3.center Enter your new account information below.
  <br>
  %div{:class => 'row'}
    %div{:class => 'col-md-6 col-md-offset-3'}
      = form_tag users_path do
      
        = label :user, :email, 'E-mail Address'
        = text_field :user, 'email', class: 'form-control', value: flash[:email]
        = label :user, :password, 'Password'
        = password_field :user, 'password', class: 'form-control'
        = label :user, :first_name, 'First Name'
        = text_field :user, 'first_name', class: 'form-control', value: flash[:first_name]
        = label :user, :last_name, 'Last Name'
        = text_field :user, 'last_name', class: 'form-control', value: flash[:last_name]
        = label :user, :personal_description, 'Personal Description'
        = text_field :user, 'personal_description', class: 'form-control', value: flash[:personal_description]
        <br>
        = submit_tag 'Submit', class: 'btn btn-primary'
      <br>
      = link_to "Back to Main Page", root_path