forumDir.html
5.23 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<div class="container">
<ol class="breadcrumb">
<li><a href="/forum">Forum</a></li>
<li>Dossiers</li>
<li class="active">{{ doss.titre }}</li>
</ol>
<h1>{{ doss.titre }}</h1>
<table class="table">
<thead>
<tr>
<th>Nom</th>
<th>Auteur</th>
<th>Dernier message</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="doss in dosss">
<td>
<a href="/forum/dir/{{ doss._id }}">
<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
{{ doss.titre }}
</a>
<span class="badge" ng-hide="doss.new">{{ doss.new }}</span>
</td>
<td>
<span class=".visible-xs">{{ doss.auteur.login }}</span>
<span class=".hidden-xs">{{ doss.auteur.nom }}</span>
</td>
<td>
{{ doss.date }}
</td>
<td>
<button type="button" class="btn btn-default" ng-show="session.membre && implemented">
<span class="glyphicon glyphicon-eye-open" aria-hidden="true" ng-show="doss.abonne"></span>
<span class="glyphicon glyphicon-eye-close" aria-hidden="true" ng-hide="doss.abonne"></span>
</button>
<button type="button" class="btn btn-danger" ng-show="mine(doss)" ng-click="delDoss($index)">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
</td>
</tr>
<tr ng-show="session.membre">
<form>
<td class="form-group">
<label for="nvDossTitre">Nouveau dossier</label>
<input type="text" class="form-control" id="nvDossTitre" placeholder="Nom du dossier" ng-model="formDoss.titre" />
</td>
<td>
</td>
<td>
</td>
<td>
<button type="submit" class="btn btn-primary" ng-class="{disabled: !formDoss.titre}" ng-click="addDoss()">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
</button>
</td>
</form>
</tr>
<tr ng-repeat="conv in convs">
<td>
<a href="/forum/conv/{{ conv._id }}">
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
{{ conv.titre }}
</a>
<span class="badge" ng-hide="conv.new">{{ conv.new }}</span>
</td>
<td>
<span class=".visible-xs">{{ conv.auteur.login }}</span>
<span class=".hidden-xs">{{ conv.auteur.nom }}</span>
</td>
<td>
{{ conv.date }}
</td>
<td>
<button type="button" class="btn btn-default" ng-show="session.membre && implemented">
<span class="glyphicon glyphicon-eye-open" aria-hidden="true" ng-show="conv.abonne"></span>
<span class="glyphicon glyphicon-eye-close" aria-hidden="true" ng-hide="conv.abonne"></span>
</button>
<button type="button" class="btn btn-danger" ng-show="mine(conv)" ng-click="delConv($index)">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
</td>
</tr>
<tr ng-show="session.membre">
<form>
<td class="form-group">
<label for="nvConvTitre">Nouvelle conversation</label>
<input type="text" class="form-control" id="nvConvTitre" placeholder="Nom de la conversation" ng-model="formConv.titre" />
</td>
<td>
</td>
<td>
</td>
<td>
<button type="submit" class="btn btn-primary" ng-class="{disabled: !formConv.titre}" ng-click="addConv()">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
</button>
</td>
</form>
</tr>
</tbody>
</table>
<!-- <nav>
<ul class="pagination">
<li>
<a href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li>
<a href="#" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav> -->
</div>