Created
December 21, 2017 15:01
-
-
Save khan-hasan/44ed70412706dacf2ac9707d3fb2d6b0 to your computer and use it in GitHub Desktop.
This is the form for creating new users.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Sign up</h2> | |
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> | |
<%= devise_error_messages! %> | |
<div class="field form-group"> | |
<%= f.text_field :first_name, autofocus: true, class: "form-control", placeholder: 'First name' %> | |
</div> | |
<div class="field form-group"> | |
<%= f.text_field :last_name, autofocus: true, class: "form-control", placeholder: 'Last name' %> | |
</div> | |
<div class="field form-group"> | |
<%= f.email_field :email, autofocus: true, class: 'form-control', placeholder: 'Email address' %> | |
</div> | |
<div class="field form-group"> | |
<% if @minimum_password_length %> | |
<em>(<%= @minimum_password_length %> characters minimum)</em> | |
<% end %><br /> | |
<%= f.password_field :password, autocomplete: "off", class: 'form-control', placeholder: 'Password' %> | |
</div> | |
<div class="field form-group"> | |
<%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control', placeholder: 'Password confirmation' %> | |
</div> | |
<div class="actions"> | |
<%= f.submit "Sign up", class: 'btn btn-primary' %> | |
</div> | |
<% end %> | |
<%= render "devise/shared/links" %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment