bouquins-bchs/search.html
2017-01-14 18:48:08 +01:00

80 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<title>Bouquins</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="preload" href="js/search.min.js" as="script">
<link rel="preload" href="js/vue.min.js" as="script">
<link rel="prefetch" href="js/search.min.js">
<link rel="prefetch" href="js/vue.min.js">
</head>
<body>
<nav class="navbar navbar-inverse" id="nav">
<div class="container">
<ul class="nav navbar-nav">
<li><a href="index.html">Accueil</a></li>
<li class="active"><a href="search.html">Recherche</a></li>
<li><a href="#">A propos</a></li>
</ul>
<form class="navbar-form navbar-right" role="search" method="get" action="search.html">
<div class="form-group">
<input name="q" type="text" class="form-control" placeholder="Recherche">
</div>
</form>
</div>
</nav>
<div class="container" id="app">
<div class="panel panel-primary">
<div class="panel-heading">
<h3>Recherche</h3>
</div>
<div class="panel-body">
<form>
<div class="form-group">
<input id="q" type="text" class="form-control" placeholder="Recherche">
</div>
<div class="form-group">
<label>Parmi</label><br/>
<label class="radio-inline">
<input type="radio" name="which" value="books" checked> livres
</label>
<label class="radio-inline">
<input type="radio" name="which" value="authors" disabled> auteurs
</label>
<label class="radio-inline">
<input type="radio" name="which" value="series" disabled> series
</label>
<label class="radio-inline">
<input type="radio" name="which" value="all" disabled> tous
</label>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox" id="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="button" class="btn btn-primary" @click="searchFull">Rechercher</button>
</form>
</div>
</div>
<div v-if="books.length > 0">
<h2>{{ booksCount }} <template v-if="booksCount>1">livres</template><template v-else>livre</template></h2>
<ul>
<li v-for="book in books" class="list-unstyled">
<span class="glyphicon glyphicon-book"></span>
<a :href="'book.html?id='+book.id">{{ book.title }}</a>
</li>
<li v-if="books.length < booksCount" class="list-unstyled">...</li>
</ul>
</div>
</div>
<script src="js/vue.min.js"></script>
<script src="js/search.min.js"></script>
</body>
</html>