_search.html.erb 1.2 KB

12345678910111213141516171819202122232425
  1. <div class="form-wrapper">
  2. &nbsp;
  3. <%= form_tag vens_path, method: 'get', class: 'search' do %>
  4. <%= fields_for :search do |f| %>
  5. <div class="advanced-toggle">...</div>
  6. <div class="advanced-fields">
  7. <div class="form-group">
  8. <%= f.label :target_ids, 'Target(s)', class: 'control-label' %><br>
  9. <%= f.select(:target_ids, grouped_options_for_select(TargetsHelper.target_options_grouped_by_tag, selected: @target_ids), {}, { multiple: true, class: 'form-control chosen-select' }) %>
  10. </div>
  11. <div class="form-group">
  12. <%= f.label :status, 'Status', class: 'control-label' %><br>
  13. <%= f.select :status, options_for_select([
  14. [Ven::ACCEPTABLE_STATUS_STRINGS[0], Ven::ACCEPTABLE_STATUS_STRINGS[0]],
  15. [Ven::ACCEPTABLE_STATUS_STRINGS[1], Ven::ACCEPTABLE_STATUS_STRINGS[1]]
  16. ], @status), { prompt: "All" }, { multiple: false, class: 'form-control' } %>
  17. </div>
  18. </div>
  19. <div class="standard-fields">
  20. <%= f.text_field :search_string, class: 'form-control', value: @search_string %>
  21. <%= f.submit 'Search', class: 'btn btn-primary' %>
  22. </div>
  23. <% end %>
  24. <% end %>
  25. </div>