Change main search input into a search term
Fixes #22 The onsubmit="return true;" is there to avoid that the form is sent by the browser as a native HTML form.
This commit is contained in:
parent
b44e850fa1
commit
b65c75163b
|
@ -6,8 +6,8 @@
|
|||
</router-link>
|
||||
|
||||
<main>
|
||||
<div id="search-anchor" class="search-container" v-bind:class="{ 'search-container-small': !searchDone }" role="search">
|
||||
<input v-bind:placeholder="inputPlaceholder" autofocus v-on:keyup.enter="doNewSearch()" type="text" v-model="formSearch" name="search-text" autocapitalize="off" autocomplete="off" autocorrect="off" maxlength="1024" />
|
||||
<form id="search-anchor" class="search-container" v-bind:class="{ 'search-container-small': !searchDone }" role="search" onsubmit="return false;">
|
||||
<input v-bind:placeholder="inputPlaceholder" autofocus v-on:keyup.enter="doNewSearch()" type="text" v-model="formSearch" name="search" autocapitalize="off" autocomplete="off" autocorrect="off" maxlength="1024" />
|
||||
|
||||
<button v-on:click="doNewSearch()">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
|
@ -17,7 +17,7 @@
|
|||
|
||||
<translate>Go!</translate>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<h3 v-if="!searchDone" v-bind:class="{ 'none-opacity': !instancesCount }" v-translate="{ instancesCount: instancesCount, indexedInstancesUrl: indexedInstancesUrl, indexName: indexName }">
|
||||
Search for your favorite videos and channels on <a href="%{indexedInstancesUrl}" target="_blank">%{instancesCount} PeerTube websites</a> indexed by %{indexName}!
|
||||
|
|
Loading…
Reference in New Issue