Sha256: 766f8338ecf49025e6f862ce36affdf44a37f95932533498e0a4a8f8937cd830

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

<div class="filter-container row">
  <%= form_tag filter_path, method: :get, class: 'col s12', remote: true do |f| %>
    <div class="row">
      <% JeraPush::Device.platform.values.each do |platform|  %>
        <div class="input-field col s2">
          <p>
            <%= check_box_tag :"platform[]", platform, filter.platform.include?(platform), id: "platform_#{platform}"  %>
            <label for="platform_<%= platform %>"><%= platform %><label>
          </p>
        </div>
      <% end %>
    </div>
    <div class="row">
      <div class="input-field col s3">
        <%= select_tag :field, options_for_select(devices_fields_for_filter_select, filter.field) %>
      </div>
      <div class="input-field col s9">
        <div class="col s6">
          <%= text_field_tag :value, filter.value %>
          <label for="value"><%= t('jera_push.admin.filter.value') %></label>
        </div>

        <div class="input-field col s3">
          <%= submit_tag t('jera_push.admin.filter.button'), class: 'btn' %>
        </div>
      </div>
    </div>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jera_push-1.0.3 app/views/jera_push/admin/devices/_filter.html.erb
jera_push-1.0.2 app/views/jera_push/admin/devices/_filter.html.erb
jera_push-1.0.1.1 app/views/jera_push/admin/devices/_filter.html.erb
jera_push-1.0.1 app/views/jera_push/admin/devices/_filter.html.erb