<%= semantic_form_for 'latency_recommendation', url: user_latency_recommendation_admin_users_path, html: {id: 'latency_recommendation_form'} do |f| %>
  <%= f.inputs :name => 'Select user', :class => 'inputs' do %>
    <%= f.input :my_user, :as => :autocomplete, url: autocomplete_user_email_admin_users_path, label: 'My user name/email' %>
    <%= f.input :my_user_id, as: :hidden %>
    <%= f.input :my_public_ip, label: 'My user public IP' %>
  <% end %>
  <%= f.inputs :name => 'Query parameters', :class => 'inputs' do %>
    <%= f.input :query, required: false %>
    <%= f.input :instruments_beginner, collection: JamRuby::Instrument.all, input_html: { multiple: true }, required: false  %>
    <%= f.input :instruments_advanced, collection: JamRuby::Instrument.all, input_html: { multiple: true }, required: false  %>
    <%= f.input :instruments_expert, collection: JamRuby::Instrument.all, input_html: { multiple: true }, required: false  %>
    <%= f.input :genres, as: :select, collection: JamRuby::Genre.all, input_html: { multiple: true }, required: false  %>
    <%= f.input :wifi, as: :select, collection: {'Any': 'any', 'Yes': true, 'No': false }, required: false  %>
    <%= f.input :max_latency, required: false %>
    <%= f.input :offset, input_html: { value: 0 } %>
    <%= f.input :limit, input_html: { value: 20 } %>
  <% end %>
  <%= f.actions do %>
    <%= f.action :submit, :as => :button, label: 'Submit' %>
    <%= f.action :cancel, :as => :link, label: 'Cancel' %>
  <% end %>
<% end %>