bouquins-bchs/search.html

80 lines
3.1 KiB
HTML
Raw Normal View History

2017-01-14 16:38:40 +00:00
<!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">
2017-01-14 17:48:08 +00:00
<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>
2017-01-14 16:38:40 +00:00
</div>
<div v-if="books.length > 0">
2017-01-14 16:52:52 +00:00
<h2>{{ booksCount }} <template v-if="booksCount>1">livres</template><template v-else>livre</template></h2>
2017-01-14 16:38:40 +00:00
<ul>
2017-01-14 17:48:08 +00:00
<li v-for="book in books" class="list-unstyled">
2017-01-14 16:38:40 +00:00
<span class="glyphicon glyphicon-book"></span>
<a :href="'book.html?id='+book.id">{{ book.title }}</a>
</li>
2017-01-14 17:48:08 +00:00
<li v-if="books.length < booksCount" class="list-unstyled">...</li>
2017-01-14 16:38:40 +00:00
</ul>
</div>
</div>
<script src="js/vue.min.js"></script>
<script src="js/search.min.js"></script>
</body>
</html>