%= tb_form_for @user, :url => path, :remote => true, :data => {:errors => :inline, :success => back_or_default(admin_users_path)}, :html => {:class => 'user-form'} do |f| %> <%= tb_form_error_header(f.object) %> <%= f.tb_sub_title 'User Details' %> <% if !TbCore.config.use_email_as_login %> <%= f.tb_text_field :login %> <% end %> <%= f.tb_text_field :email %> <%= f.tb_text_field :first_name %> <%= f.tb_text_field :last_name %> <%= f.tb_time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones, {:default => Rails.application.config.time_zone} %> <%= render :partial => 'form_additions', :locals => {:f => f} %> <%= f.tb_sub_title 'Credentials' %> <%= f.tb_password_field :password %> <%= f.tb_password_field :password_confirmation %>