<%= error_messages_for(f.object) %>
User Details
<%=f.label :login, :required=>true,:class=> "control-label"%>
<%=f.text_field :login,:title => "",:size=>25%>

This is the username used to login to the account.

<%=f.label :email,:class=> "control-label"%>
<%=f.text_field :email, :title => "",:size => 25%>

The email address must be a valid email address.

<%=f.label :first_name,:class=> "control-label"%>
<%=f.text_field :first_name, :title => "",:size => 25%>
<%=f.label :last_name,:class=> "control-label"%>
<%=f.text_field :last_name, :title => "",:size => 25%>
<%=f.label :time_zone,:class => "control-label"%>
<%=f.time_zone_select :time_zone,ActiveSupport::TimeZone.us_zones,:default => Rails.application.config.time_zone%>
Credentials
<%=f.label :password,:class=> "control-label"%>
<%=f.password_field :password, :title => "",:size => 25%>

Password must be at least 8 characters

<%=f.label :password_confirmation,"Confirm",:class=> "control-label"%>
<%=f.password_field :password_confirmation, :title => "",:size => 25%>

Retype your password here.

Permissions
<%= f.label :super_admin, "Super Admin", :class=> "control-label" %>
<%= f.label :role, 'Role', :class => 'control-label' %>
<%= f.select :spud_role_id, options_from_collection_for_select(SpudRole.all, :id, :name, f.object.spud_role_id), :include_blank => 'No Role' %>
<%= f.submit "Save User", :class=>"btn btn-primary", "data-loading-text" => "Saving..." %> or <%= link_to "Cancel", '#', :class => "btn admin-user-edit-cancel-btn" %>