new.html.erb 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="row">
  2. <div class="col-lg-4 col-md-6 ml-auto mr-auto">
  3. <h1 class="text-center">Sign Up</h1>
  4. <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  5. <%= devise_error_messages! %>
  6. <div class="form-group">
  7. <%= f.text_field :first_name, autofocus: true, class: 'form-control', placeholder: "First Name" %>
  8. </div>
  9. <div class="form-group">
  10. <%= f.text_field :last_name, autofocus: false, class: 'form-control', placeholder: "Last Name" %>
  11. </div>
  12. <div class="form-group">
  13. <%= f.email_field :email, autofocus: false, class: 'form-control', placeholder: "Email Address" %>
  14. </div>
  15. <div class="form-group">
  16. <%= f.password_field :password, autocomplete: "off", class: 'form-control', placeholder: 'Password' %>
  17. </div>
  18. <div class="form-group">
  19. <%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control', placeholder: 'Confirm Password' %>
  20. </div>
  21. <div class="form-group">
  22. <%= f.submit "Sign up", class: "btn btn-primary btn-block btn-lg" %>
  23. </div>
  24. <% end %>
  25. <div class="text-center">
  26. <%= render "devise/shared/links" %>
  27. </div>
  28. </div>
  29. </div>