<%= form_tag(site_mappings_path(@site), method: 'get', role: 'form', class: 'form-inline') do %>
  <div class="form-group">
    <%= label_tag :contains, class: 'control-label' do %>
      Filter by path <% if params[:contains] and params[:contains].length > 0 %>(<%= link_to 'Remove filter', site_mappings_path(@site) %>)<% end %>
    <% end %>
    <div class="row">
      <div class="col-md-4">
        <div class="input-group">
          <%= text_field_tag :contains, params[:contains], class: 'form-control', placeholder: 'eg /home'  %>
          <span class="input-group-btn">
            <%= submit_tag 'Filter', name: nil, class: 'btn btn-default ' %>
          </span>
        </div>
      </div>
    </div>
  </div>
<% end %>

<%= form_tag(site_mappings_path(@site), method: 'get', role: 'form', class: 'form') do %>
  <div class="row">
    <div class="col-md-6">
      <%= label_tag :contains, class: 'control-label' do %>
        Filter by path <% if params[:contains] and params[:contains].length > 0 %>(<%= link_to 'Remove filter', site_mappings_path(@site) %>)<% end %>
      <% end %>
      <div class="input-group">
        <%= text_field_tag :contains, params[:contains], class: 'form-control', placeholder: 'eg /home'  %>
        <span class="input-group-btn">
          <%= button_tag 'Filter', name: nil, class: 'btn btn-default ' %>
        </span>
      </div>
    </div>
  </div>
<% end %>

Fix very short filter input in Firefox
Fix very short filter input in Firefox

* Rearrange order of wrappers, placing label in grid cell too and
removing form-group wrapper
* Convert filter from input to button for correct height, it seems
bootstrap 3 doesn’t like input type submit much,
http://stackoverflow.com/questions/18542343/is-there-a-way-a-aligning-my
-input-group-on-firefox-using-bootstrap-3
