go-bouquins/templates/search.html
Meutel c17e238951
All checks were successful
continuous-integration/drone/push Build is passing
Bootstrap 4
2019-09-12 19:09:52 +02:00

60 lines
2.4 KiB
HTML

{{ template "header.html" . }}
<div class="container" id="search">
<div class="card border-primary">
<h3 class="card-header bg-primary text-white"> Recherche </h3>
<div class="card-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 class="font-weight-bold">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 class="font-weight-bold">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="form-text text-muted">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" . }}