<%= render 'admin/searches/form', query: @query %>

<%= form_tag admin_petitions_path, :method => :get, :class => "filter" do -%>
  <%= label_tag :state, "Filter by status:" %>
  <%= select_tag :state, admin_petition_facets_for_select(params[:state]), data: {autosubmit: true} %>
  <%= submit_tag "Go" %>
<% end -%>
<table class="admin_index">
  <thead>
    <tr>
      <th>Id</th>
      <th>Action</th>
      <th>Creator</th>
      <th>State</th>
      <th>Count</th>
      <th>Closing date</th>
    </tr>
  </thead>
  <tbody>
    <% @petitions.each do |petition| -%>
      <tr>
        <td class='petition_id'><%= petition.id %></td>
        <td class="petition-action"><%= link_to petition.action, admin_petition_path(petition) %></td>
        <td><%= petition.creator_signature.name %><br/>
        <%= mail_to petition.creator_signature.email %></td>
        <td><%= petition.state_label %></td>
        <td class="count"><%= number_with_delimiter(petition.signature_count) %></td>
        <td><%= date_format_admin(petition.closed_at) %></td>
      </tr>
    <% end -%>
  </tbody>

  <%= will_paginate(@petitions) if @petitions.any? %>
</table>

<%= render 'admin/searches/form', query: @query %>

<%= form_tag admin_petitions_path, :method => :get, :class => "filter" do -%>
  <%= label_tag :state, "Filter by status:" %>
  <%= select_tag :state, admin_petition_facets_for_select(params[:state]), data: {autosubmit: true} %>
  <%= submit_tag "Go", name: nil %>
<% end -%>

<table class="admin_index">
  <thead>
    <tr>
      <th>Id</th>
      <th>Action</th>
      <th>Creator</th>
      <th>State</th>
      <th>Count</th>
      <th>Closing date</th>
    </tr>
  </thead>
  <tbody>
    <% @petitions.each do |petition| -%>
      <tr>
        <td class='petition_id'><%= petition.id %></td>
        <td class="petition-action"><%= link_to petition.action, admin_petition_path(petition) %></td>
        <td><%= petition.creator_signature.name %><br/>
        <%= mail_to petition.creator_signature.email %></td>
        <td><%= petition.state_label %></td>
        <td class="count"><%= number_with_delimiter(petition.signature_count) %></td>
        <td><%= date_format_admin(petition.closed_at) %></td>
      </tr>
    <% end -%>
  </tbody>

  <%= will_paginate(@petitions) if @petitions.any? %>
</table>

Remove submit button name from petitions index filter
Remove submit button name from petitions index filter
