<% breadcrumb(:filter_mappings, @site) %>

<%= content_for :page_title, 'Filter mappings' %>
<h1 class="page-title-with-border">
  <span class="small"><%= @site.default_host.hostname %></span>
  Filter mappings
</h1>

<%= form_tag(site_mappings_path(@site), method: 'get', role: 'form', class: 'form row') do %>
  <div class="col-md-6">
    <%= render partial: 'mappings/filter/by_path' %>
    <%= render partial: 'mappings/filter/by_new_url' %>
    <%= button_tag 'Filter', name: nil, class: 'btn btn-default ' %>
  </div>
<% end %>

<% breadcrumb(:filter_mappings, @site) %>

<%= content_for :page_title, 'Filter mappings' %>
<h1 class="page-title-with-border">
  <span class="small"><%= @site.default_host.hostname %></span>
  Filter mappings
</h1>

<%= form_tag(site_mappings_path(@site), method: 'get', role: 'form', class: 'form row') do %>
  <div class="col-md-6">
    <%= render partial: 'mappings/filter/by_path' %>
    <%= render partial: 'mappings/filter/by_new_url' %>
    <div class="form-group">
      <% tag_list_label = capture do %>
        Tags
        <p class="text-muted normal add-label-margin">Separate each tag with a comma. eg “content, need:123, plan:2”</p>
      <% end %>
      <%= label_tag :tagged, tag_list_label %>
      <%= text_field_tag :tagged, params[:tagged], class: 'form-control' %>
    </div>
    <%= button_tag 'Filter', name: nil, class: 'btn btn-default ' %>
  </div>
<% end %>

Include tag fields on non-js filter form
Include tag fields on non-js filter form

* Currently duplicates helper text
