-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplanning.html
69 lines (62 loc) · 2.37 KB
/
planning.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Planning MAM</title>
<link rel="stylesheet" href="css/style.css">
<script src="https://unpkg.com/vue"></script>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid Sans">
</head>
<body>
<div id="app">
<month></month>
</div>
</body>
<footer>
<script type="text/x-template" id="month-template">
<div>
<h1 id="month"> Février </h1>
<div v-for="(d,i) in weeks">
<week :days="d" :index="i"></week>
</div>
</div>
</script>
<script type="text/x-template" id="week-template">
<div>
<div v-for="day in days" class="days">
<day-component :if="day !== undefined" :index="index" :children="day.child_days"></day-component>
</div>
</div>
</script>
<script type="text/x-template" id="day-template">
<div>
<div v-if="children.length > 0">
<h1 id="day_number">
{{ children[0].day }}
</h1>
<morning :children="children" :index="index" :isMorning="true"></morning>
<midday></midday>
<afternoon :children="children" :index="index" :isMorning="false"></afternoon>
</div>
</div>
</script>
<script type="text/x-template" id="day-part-template">
<div>
<div v-if="isMorning" v-for="child in children_start" class="hour_cell" v-bind:class="child.am">
{{ child.name + " " + parseHour(child.start)}}
</div>
<div v-if="!isMorning" v-for="child in children_end" class="hour_cell" v-bind:class="child.am">
{{ child.name + " " + parseHour(child.end)}}
</div>
</div>
</script>
<script type="text/x-template" id="day-midday-template">
<div>
<div class="hour_cell"></div>
<div class="hour_cell"></div>
<div class="hour_cell"></div>
</div>
</script>
<script src="js/main.js"></script>
</footer>
</html>