Sha256: 796e86d560f9846c665e6bcd3fdf00049f67006ba47f5ddc05c20332a60d86c1

Contents?: true

Size: 750 Bytes

Versions: 3

Compression:

Stored size: 750 Bytes

Contents

<% if config[:tech_docs][:enable_search] %>
<div class="search" data-module="search" data-path-to-site-root="<%= path_to_site_root config, current_page.path %>">
  <form action="https://www.google.co.uk/search" method="get" role="search" class="search__form govuk-!-margin-bottom-4">
    <input type="hidden" name="as_sitesearch" value="<%= config[:tech_docs][:host] %>"/>
    <label class="govuk-label search__label" for="search">
      Search (via Google)
    </label>
    <input
      type="search"
      id="search" name="q"
      class="govuk-input govuk-!-margin-bottom-0 search__input"
      aria-controls="search-results"
      placeholder="Search">
    <button type="submit" class="search__button">Search</button>
  </form>
</div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk_tech_docs-4.1.1 lib/source/layouts/_search.erb
govuk_tech_docs-4.1.0 lib/source/layouts/_search.erb
govuk_tech_docs-4.0.0 lib/source/layouts/_search.erb