go-bouquins/templates/search.html
2017-08-06 12:50:43 +02:00

62 lines
2.3 KiB
HTML

{{ template "header.html" . }}
<div class="container" id="search">
<div class="panel panel-primary">
<div class="panel-heading">
<h3>Recherche</h3>
</div>
<div class="panel-body">
<form id="searchForm" @submit="searchFull" v-on:submit.prevent>
<div class="form-group">
<input type="text" class="form-control" placeholder="Recherche" v-model="q">
</div>
<div class="form-group">
<label>Parmi</label><br/>
<label class="radio-inline">
<input type="radio" value="books" v-model="which"> livres
</label>
<label class="radio-inline">
<input type="radio" value="authors" v-model="which"> auteurs
</label>
<label class="radio-inline">
<input type="radio" value="series" v-model="which"> series
</label>
<label class="radio-inline">
<input type="radio" value="all" v-model="which"> tous
</label>
</div>
<div class="form-group">
<label>Nombre de resultats</label><br/>
<label class="radio-inline">
<input type="radio" value="10" v-model="perpage"> 10
</label>
<label class="radio-inline">
<input type="radio" value="20" v-model="perpage"> 20
</label>
<label class="radio-inline">
<input type="radio" value="50" v-model="perpage"> 50
</label>
<label class="radio-inline">
<input type="radio" value="100" v-model="perpage"> 100
</label>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox" v-model="all" disabled> Tous les mots
</label>
<p class="help-block">Cocher pour rechercher les élements contenant tous les mots saisis</p>
</div>
</div>
<button type="submit" class="btn btn-primary">Rechercher</button>
</form>
</div>
</div>
<div class="table-responsive">
<results-list type="books" :count="booksCount" :results="books"></results-list>
<results-list type="authors" :count="authorsCount" :results="authors"></results-list>
<results-list type="series" :count="seriesCount" :results="series"></results-list>
</div>
</div>
{{ template "components.html" }}
{{ template "footer.html" . }}