bouquins-bchs/index.html

46 lines
1.7 KiB
HTML
Raw Normal View History

2016-12-18 17:28:19 +00:00
<!DOCTYPE html>
2016-12-30 18:14:44 +00:00
<html lang="fr">
2016-12-18 17:28:19 +00:00
<head>
2016-12-30 16:16:43 +00:00
<title>Bouquins</title>
2016-12-30 17:46:03 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1" />
2016-12-18 17:28:19 +00:00
<meta charset="utf-8" />
2016-12-31 09:31:48 +00:00
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="preload" href="js/index.min.js" as="script">
<link rel="preload" href="js/vue.min.js" as="script">
<link rel="prefetch" href="js/index.min.js">
<link rel="prefetch" href="js/vue.min.js">
2016-12-18 17:28:19 +00:00
</head>
<body>
2016-12-30 18:14:44 +00:00
<div class="container" id="app">
<div class="jumbotron">
<h1>Bouquins</h1>
<p>Cette bibliothèque contient actuellement <strong>{{ booksCount }}</strong> livres et BD en format papier ou électronique.</p>
2016-12-31 09:31:48 +00:00
<button class="btn btn-primary" type="button" v-on:click="loadBooks">Livres</button>
</div>
<div class="table-responsive" v-if="books.length > 0">
2016-12-30 18:14:44 +00:00
<table class="table table-striped">
<tr>
<th>Titre</th>
<th>Auteur(s)</th>
2016-12-31 09:31:48 +00:00
<th>Serie</th>
2016-12-30 18:14:44 +00:00
</tr>
<tr v-for="book in books">
2016-12-31 09:31:48 +00:00
<td><span class="glyphicon glyphicon-book"></span>{{ book.title }}</td>
2016-12-30 18:14:44 +00:00
<td>
<template v-for="author in book.authors">
2016-12-31 09:31:48 +00:00
<span class="glyphicon glyphicon-user"></span>{{ author.name }}
2016-12-30 18:14:44 +00:00
</template>
</td>
2016-12-31 09:31:48 +00:00
<td>
<span class="glyphicon glyphicon-list"></span>{{ book.series ? book.series.name : '' }}
<span class="badge">{{ book.series ? book.series.idx : '' }}</span>
</td>
2016-12-30 18:14:44 +00:00
</tr>
</table>
</div>
2016-12-30 17:18:11 +00:00
</div>
2016-12-31 09:31:48 +00:00
<script src="js/vue.min.js"></script>
<script src="js/index.min.js"></script>
2016-12-18 17:28:19 +00:00
</body>
</html>