= form_tag spree.users_and_enterprises_admin_reports_url do |f|
  .row
    .alpha.two.columns= label_tag nil, t(:report_enterprises)
    .omega.fourteen.columns= select_tag(:enterprise_id_in, options_from_collection_for_select(Enterprise.all, :id, :name, params[:enterprise_id_in].andand.split(",")), {class: "select2 fullwidth", multiple: true})

  .row
    .alpha.two.columns= label_tag nil, t(:report_users)
    .omega.fourteen.columns= select_tag(:user_id_in, options_from_collection_for_select(Spree::User.all, :id, :email, params[:user_id_in].andand.split(",")), {class: "select2 fullwidth", multiple: true})

  -# Might need this later if we add different kinds of reports
  -# .row
  -#   .alpha.two.columns= label_tag nil, "Report Type: "
  -#   .omega.fourteen.columns= select_tag(:report_type, options_for_select(@report_types, params[:report_type]))

  .row
    = check_box_tag :csv
    = label_tag :csv, t(:report_customers_csv)
  .row
    = button t(:search)

= render "table", id: "users_and_enterprises", msg_option: t(:search)
