forumConv.html
2.99 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
<div class="container">
<ol class="breadcrumb">
<li><a href="/forum">Forum</a></li>
<li>Conversations</li>
<li class="active">{{ conv.titre }}</li>
</ol>
<h1>{{ conv.titre }}</h1>
<table class="table">
<thead>
<tr>
<th>Détails</th>
<th>Message</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="mess in messs">
<td>
{{ mess.auteur.image }}
<br />
<span class=".visible-xs">{{ mess.auteur.login }}</span>
<span class=".hidden-xs">{{ mess.auteur.nom }}</span>
<br/> {{ mess.auteur.section }}
<br/> {{ mess.auteur.role }}
<br/> {{ doss.date }}
</td>
<!-- <td btf-markdown="mess.content"></td> -->
<td mess-edit></td>
<td>
<mess-viewsource></mess-viewsource>
<button type="button" class="btn btn-primary" ng-show="session.canEditMess" ng-click="editButton($index)">
<span class="glyphicon glyphicon-edit" aria-hidden="true" ng-hide="mess.editMode"></span>
<span class="glyphicon glyphicon-ok" aria-hidden="true" ng-show="mess.editMode"></span>
</button>
<button type="button" class="btn btn-danger" ng-show="session.canDelMess" ng-click="delMess($index)">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
</td>
</tr>
<tr ng-show="session.canAddMess">
<form ng-init="mess = {content: '', editMode: true, viewSource: true}">
<td>
<label for="nvMessTitre">Nouveau message</label>
</td>
<td mess-edit></td>
<td>
<mess-viewsource></mess-viewsource>
<button type="submit" class="btn btn-primary" ng-class="{disabled: !mess.content}" ng-click="addMess()">
<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>