Sha256: b61b190a20a9306135a8b48b8c63564328258f1d81245ee3db021f4c878b9d72

Contents?: true

Size: 823 Bytes

Versions: 6

Compression:

Stored size: 823 Bytes

Contents

<%-
  state_options = options_for_select(options_for_available_states, params[:state_id])
  city_options  = options_for_select(options_for_available_cities(params[:state_id]), params[:city_id])
-%>
<section>
  <header>
    <h1><%= t('.title') %></h1>
    <%= form_tag(jobs_path, method: :get) do %>
      <label for="state_id"><%= t('.state') %></label>
      <%= select_tag :state_id, state_options, prompt: t('.select_state'), data: { 'filter-select' => '{"target": "#city_id", "filterParam":"state_id", "filter": "city", "data": {  "open_jobs": "1"} }' } %>

      <label for="city_id"><%= t('.city') %></label>
      <%= select_tag :city_id, city_options, prompt: t('.select_city') %>
      <button class="expand secondary"> <%= icon('page-search') %> <%= t('.submit') %> </button>
    <% end %>
  </header>
</section>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
recruiter-1.1.2 app/views/recruiter/_filters.html.erb
recruiter-1.1.1 app/views/recruiter/_filters.html.erb
recruiter-1.1.0 app/views/recruiter/_filters.html.erb
recruiter-1.0.0 app/views/recruiter/_filters.html.erb
recruiter-0.1.5 app/views/recruiter/_filters.html.erb
recruiter-0.1.4 app/views/recruiter/_filters.html.erb