new.html.erb 952 Bytes
Newer Older
1 2 3 4 5
<h2>Sign up</h2>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

6 7 8 9 10
  <div class="field">
    <%= f.label :full_name %><br />
    <%= f.text_field :full_name, autofocus: true %>
  </div>

11 12
  <div class="field">
    <%= f.label :email %><br />
13 14 15 16 17 18
    <%= f.email_field :email%>
  </div>

  <div class="field">
    <%= f.label :cpf %><br />
    <%= f.text_field :cpf%>
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
  </div>

  <div class="field">
    <%= f.label :password %>
    <% if @minimum_password_length %>
    <em>(<%= @minimum_password_length %> characters minimum)</em>
    <% end %><br />
    <%= f.password_field :password, autocomplete: "off" %>
  </div>

  <div class="field">
    <%= f.label :password_confirmation %><br />
    <%= f.password_field :password_confirmation, autocomplete: "off" %>
  </div>

  <div class="actions">
    <%= f.submit "Sign up" %>
  </div>
<% end %>

<%= render "users/shared/links" %>