<%= form_for(@user, url: user_path) do |f| %>

  <%= render partial: 'shared/error_list', locals: {model: @user} %>

  <div class="form-group">
    <%= f.label :username, class: 'control-label' %>
    <%= f.text_field :username, autofocus: true, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :full_name, 'Name', class: 'control-label' %>
    <%= f.text_field :full_name, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :email, class: 'control-label' %>
    <%= f.text_field :email, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :password, class: 'control-label' %>
    <%= f.password_field :password, class: 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.label :password_confirmation, class: 'control-label' %>
    <%= f.password_field :password_confirmation, class: 'form-control' %>
  </div>
  
  <div class="actions">
    <%= f.submit class: 'btn btn-primary' %>
    <%= link_to "Back", root_path, class: 'btn btn-default' %>
  </div>
<% end %>
