Sha256: 8f5d0c6a2efb55910a8d9e201169a51d395aa10323a547c6be7d7ba2fc1757af

Contents?: true

Size: 1001 Bytes

Versions: 8

Compression:

Stored size: 1001 Bytes

Contents

<%= simple_form_for(@filter, url: url, remote: true) do |f| %>

  <div class="inline-buttons-block top">
    <%= button_tag(t('klastera.actions.filter'), class: 'btn btn-primary btn-sm float-right', data: { disable_with: "<i class='fa fa-spinner spin'></i>" }) %>
  </div>

  <%=yield(f) if block_given? %>

  <% if cluster_organization.is_in_cluster_mode? %>
    <% cluster_collection = cluster_clusters.map{|c|[c.name,(c.id||c.nid)]} %>
    <% if cluster_collection.size > 1 %>
      <div class="inline-label-control-block">
        <%= f.input :cluster_id, collection: cluster_collection, prompt: t('klastera.clusters.all'), label: false, wrapper: false %>
        <label class="control-label"><%=t('klastera.cluster.title')%>:</label>
      </div>
    <% end %>
  <% end %>

  <div class="inline-buttons-block bottom">
    <%= button_tag(t('klastera.actions.filter'), class: 'btn btn-primary btn-sm float-right', data: { disable_with: "<i class='fa fa-spinner spin'></i>" }) %>
  </div>

<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
klastera-1.2.4.2 app/views/layouts/klastera/_cluster_filter.html.erb
klastera-1.2.4.1 app/views/layouts/klastera/_cluster_filter.html.erb
klastera-1.2.4 app/views/layouts/klastera/_cluster_filter.html.erb
klastera-1.2.3.2 app/views/layouts/klastera/_cluster_filter.html.erb
klastera-1.2.3 app/views/layouts/klastera/_cluster_filter.html.erb
klastera-1.2.2 app/views/layouts/klastera/_cluster_filter.html.erb
klastera-1.2.1 app/views/layouts/klastera/_cluster_filter.html.erb
klastera-1.2.0 app/views/layouts/klastera/_cluster_filter.html.erb