mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
2eb8fe89ea
Change-Id: I8fe04d458da292e2990543afa232a91b6dd4db59
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
{{!
|
|
See @typedef SearchData
|
|
}}
|
|
<div{{#is-primary}} id="p-search"{{/is-primary}} role="search" class="{{class}} vector-search-box">
|
|
{{#is-collapsible}}
|
|
{{#data-collapsed-search-button}}
|
|
{{>Button}}
|
|
{{/data-collapsed-search-button}}
|
|
{{/is-collapsible}}
|
|
<div class="vector-typeahead-search-container">
|
|
<div class="cdx-typeahead-search{{#is-thumbnail}} cdx-typeahead-search--show-thumbnail{{/is-thumbnail}}{{#is-auto-expand}} cdx-typeahead-search--auto-expand-width{{/is-auto-expand}}">
|
|
<form action="{{form-action}}" id="{{form-id}}" class="cdx-search-input cdx-search-input--has-end-button">
|
|
<div {{#is-primary}}id="simpleSearch"{{/is-primary}} class="cdx-search-input__input-wrapper" {{#input-location}} data-search-loc="{{.}}"{{/input-location}}>
|
|
<div class="cdx-text-input cdx-text-input--has-start-icon">
|
|
<input
|
|
class="cdx-text-input__input"
|
|
{{#is-primary}}{{{html-input-attributes}}} id="searchInput"{{/is-primary}}
|
|
{{^is-primary}}type="search" name="search" placeholder="{{msg-searchsuggest-search}}"{{/is-primary}}>
|
|
<span class="cdx-text-input__icon cdx-text-input__start-icon"></span>
|
|
</div>
|
|
<input type="hidden" name="title" value="{{page-title}}">
|
|
</div>
|
|
<button class="cdx-button cdx-search-input__end-button">{{msg-searchbutton}}</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|