<%= devise_error_messages! %> <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:novalidate => ''}) do |f| %> <% resource.build_profile if resource.profile.nil? %>
<%= f.label :username %> <%= f.text_field :username, autofocus: true, class: 'form-control' %>
<%= f.label :email %> <%= f.email_field :email, class: 'form-control' %>
<%= f.fields_for :profile do |p| %>
<%= p.label :phone %> <%= p.text_field :phone, class: 'form-control' %>
<%= p.label :gender %>
<%= p.label :last_name %> <%= p.text_field :last_name, class: 'form-control' %>
<%= p.label :first_name %> <%= p.text_field :first_name, class: 'form-control' %>
<%= p.label :birthday %> <%= p.date_field :birthday, class: 'form-control' %>
<%= p.label :interest %> <%= p.text_area :interest, class: 'form-control' %>
<%= p.label :software_mastered %> <%= p.text_area :software_mastered, class: 'form-control' %>
<% end %>
<%= f.label :password %> <%= f.password_field :password, class: 'form-control' %>
<%= f.label :password_confirmation %> <%= f.password_field :password_confirmation, class: 'form-control' %>
<% end %>