-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgerer.html
73 lines (68 loc) · 2.33 KB
/
gerer.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
70
71
72
73
<template name="page_gerer">
{{#if name}}
<h1 id="ntournoi">{{name}}</h1>
<!-- {{#if nombreMatchsRestants}}
<h2>Il n'y a plus de match à jouer</h2>
{{else}} -->
<h1 id="mcompleter">Matchs à compléter</h1>
<!-- <div class="row"> -->
<table class="table table-striped table-responsive">
<thead>
<tr>
<th> J1</th>
<th>Score J1</th>
<th></th>
<th>Score J2</th>
<th> J2</th>
<th>Terminé ?</th>
</tr>
</thead>
<tbody>
{{#each matchRestants _id}}
<tr>
<td>{{j1.name}}</td>
<td><input class="inputScore inputScore{{nuMatch}} {{nuMatch}}" type="number" min="0" value="{{j1.score}}" name="scoreInputJ1"></td>
<td> - </td>
<td><input class="inputScore inputScore{{nuMatch}} {{nuMatch}}" type="number" min="0" value="{{j2.score}}" name="scoreInputJ2"></td>
<td>{{j2.name}}</td>
<td><span id={{nuMatch}} class="glyphicon glyphicon-ok validerScore"></span></td>
</tr>
<!-- <div class="col-xs-6 col-md-4 col-lg-2 matchAcompleter">
{{j1.name}} <input class="inputScore" type="number" value="{{j1.score}}" name="scoreInputJ1">
-
<input class="inputScore"type="number" value="{{j2.score}}" name="scoreInputJ2"> {{j2.name}}
<span class="glyphicon glyphicon-ok"></span>
</div> -->
{{/each}}
</tbody>
</table>
<!-- {{/if}} -->
{{else}}
{{#if nombreTournois}}
<h1 id="tournois">Tournois</h1>
<table class="table table-striped">
<thead>
<tr>
<th>Nom du tournoi</th>
<th>Nombre de joueurs</th>
<th>Date de création</th>
<th>Supprimer</th>
</tr>
</thead>
<tbody>
{{#each tournoisCrees}}
<tr>
<td class="goTournoi">{{name}}</td>
<td class="goTournoi">{{joueurs}}</td>
<td class="goTournoi">{{date}}</td>
<td><span class="glyphicon glyphicon-remove suppr-tournoi"></span></td>
</tr>
{{/each}}
</tbody>
</table>
{{else}}
<h3><a href="/creer">Tu n'as actuellement aucun tournoi, crées en un !</a></h3>
{{/if}}
{{/if}}
</template>