
= semantic_form_for([:admin_users, @user], builder: ActiveAdmin::FormBuilder, :url => @user.new_record? ? add_school_user_admin_users_path : "/admin/users/#{@user.id}/add_school_user") do |f|
  = f.inputs "Details" do
    = f.input :email, label: 'Email', required: true
    = f.input :first_name, required: true
    = f.input :last_name, required: true
    = f.input :license_start, as: :datepicker, required: true
    = f.input :license_end, as: :datepicker, required: true
    = f.input :import_source, required: true
    = f.input :school_id, as: :select, collection: School.all, required: true
    = f.input :user_type, as: :select, collection: ['Student', 'Student Instructor', 'Platform Instructor'], include_blank: false, required: true 
  = f.actions