%form.search{:class => (@features[:index_text_search]) ? 'has-text-search' : '', :action => url_for( :controller => controller_name, :action => :index ), :title => "#{ resource_class.respond_to?( :filter ) ? '' : 'Add :filter scope to ' + resource_class.to_s + ' to enable searching' }"}
  - if @features[:index_text_search]
    .text-search
      .wrapper
        %input{:name => "search", :type => "text", :value => params[:search], :autofocus => true }
        %button.button.only-icon{:type => "submit", :disabled => !resource_class.respond_to?( :filter ), :title => t('Search', :scope => 'admin.global')}>
          %i.icon-search
      .clear
  - if has_template? "_index.search.extras"
    .extras
      = render :partial => "index.search.extras"
      %button.button{:type => "submit", :disabled => !resource_class.respond_to?( :filter )}>
        %i.icon-search
        %span
          = t('Filter', :scope => 'admin.global')

%form.search{:class => (@features[:index_text_search]) ? 'has-text-search' : '', :action => url_for( :controller => controller_name, :action => :index ), :title => "#{ resource_class.respond_to?( :filter ) ? '' : 'Add :filter scope to ' + resource_class.to_s + ' to enable searching' }"}
  - if @features[:index_text_search]
    .text-search
      .wrapper
        %input{:name => "search", :type => "text", :value => params[:search], :autofocus => true }
        %button.button.only-icon{:type => "submit", :disabled => !resource_class.respond_to?( :filter ), :title => t('Search', :scope => 'admin.global')}>
          %i.icon-search
      .clear
  - if has_template? "_index.search.extras"
    .extras.clearInside
      = render :partial => "index.search.extras"
      %button.button{:type => "submit", :disabled => !resource_class.respond_to?( :filter )}>
        %i.icon-search
        %span
          = t('Filter', :scope => 'admin.global')

Use clearInside within search form extras block
Use clearInside within search form extras block
