new.html.erb 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 :name, autofocus: true, class: 'form-control', placeholder: "Full Name" %>
  8. </div>
  9. <div class="form-group">
  10. <%= f.email_field :email, autofocus: false, class: 'form-control', placeholder: "Email Address" %>
  11. </div>
  12. <div class="form-group">
  13. <%= f.password_field :password, autocomplete: "off", class: 'form-control', placeholder: 'Password' %>
  14. </div>
  15. <div class="form-group">
  16. <%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control', placeholder: 'Confirm Password' %>
  17. </div>
  18. <div class="form-group">
  19. <%= f.submit "Sign up", class: "btn btn-primary btn-block btn-lg" %>
  20. </div>
  21. <% end %>
  22. <div class="text-center">
  23. <%= render "devise/shared/links" %>
  24. </div>
  25. </div>
  26. </div>