Sha256: 9e643c58e2e4abed8d88292214a34695ce55e42deb4a1bca0e12d91f94263729

Contents?: true

Size: 1.44 KB

Versions: 9

Compression:

Stored size: 1.44 KB

Contents

<div class="filter level-left">
  <div class="field is-grouped">
    <div class="control">
      <%= form_for :filter, url: application_jobs_path(MissionControl::Jobs::Current.application, jobs_status), method: :get,
        data: { controller: "form", action: "input->form#debouncedSubmit" } do |form| %>

        <div class="select is-rounded">
          <%= form.text_field :job_class_name, value: @job_filters[:job_class_name], class: "input", list: "job-classes", placeholder: "Filter by job class..." %>
        </div>

        <div class="select is-rounded">
          <%= form.text_field :queue_name, value: @job_filters[:queue_name], class: "input", list: "queue-names", placeholder: "Filter by queue name..." %>
        </div>

        <%= hidden_field_tag :server_id, MissionControl::Jobs::Current.server.id %>

        <datalist id="job-classes" style="display: none;">
          <% job_class_names.each do |job_class_name| %>
            <option value="<%= job_class_name %>" />
          <% end %>
        </datalist>

        <datalist id="queue-names" style="display: none;">
          <% queue_names.each do |queue_name| %>
            <option value="<%= queue_name %>" />
          <% end %>
        </datalist>
      <% end %>
    </div>

    <div class="control">
      <%= link_to "Clear", application_jobs_path(MissionControl::Jobs::Current.application, jobs_status, job_class_name: nil, queue_name: nil), class: "button" %>
    </div>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mission_control-jobs-0.3.3 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.3.2 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.3.1 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.3.0 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.2.2 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.2.1 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.2.0 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.1.1 app/views/mission_control/jobs/jobs/_filters.html.erb
mission_control-jobs-0.1.0 app/views/mission_control/jobs/jobs/_filters.html.erb