-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (40 loc) · 1.83 KB
/
index.html
File metadata and controls
53 lines (40 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Inclusion des Google Fonts + le framework CSS Materialize.css -->
<link href="//fonts.googleapis.com/icon?family=Material+Icons|Roboto" rel="stylesheet">
<link rel="stylesheet" href="node_modules/materialize-css/dist/css/materialize.css">
<!-- Style de l'application -->
<link rel="stylesheet" href="styles/main.css">
<title>Vue.js Sample Project</title>
</head>
<body>
<main id="app" class="container">
<h3>Ajouter une tâche</h3>
<fieldset>
<form class="row">
<div class="input-field col m6 offset-m3">
<input id="taskTitle" type="text" v-model="taskTitle">
<label for="taskTitle">Intitulé de la tâche</label>
</div>
<div class="col m4 offset-m5">
<button type="submit" class="waves-effect waves-light btn" @click.prevent="addTask()">Ajouter</button>
</div>
</form>
</fieldset>
<h3>Liste des tâches</h3>
<p>Il reste <strong>{{ getUndoneTask() | pluralize('tâche') }}</strong> sur <strong>{{ tasks.length }}</strong> à effectuer.</p>
<ul class="collection">
<task-list v-for="task in tasks" :task="task" @remove-task="removeTask" @refresh-list="refreshList"></task>
</ul>
</main><!-- Fin de l'app Vue.js -->
<!-- Inclusion des scripts nécessaires au fonctionnement de Materialize (ceci inclus jQuery) -->
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/materialize-css/dist/js/materialize.min.js"></script>
<script src="node_modules/vue/dist/vue.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>