-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommunitere.html
116 lines (94 loc) · 2.61 KB
/
communitere.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
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
<head>
<title>communitere</title>
</head>
<body>
{{> debug}}
{{> main}}
</body>
<template name="main">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>INBOX</h2>
<table class="table">
<thead>
<tr>
<th>Content</th>
<th>Callback number</th>
<th>Received</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{{#each openMessages}}
<tr class="status-{{status}} message {{currentMsgClass}}">
<td>{{body}}</td>
<td>{{callback}}</td>
<td>{{received}}</td>
<td>{{status}}</td>
</tr>
{{/each}}
<tr><td></td></tr>
{{#each doneMessages}}
<tr class="status-{{status}} message">
<td>{{body}}</td>
<td>{{callback}}</td>
<td>{{received}}</td>
<td>{{status}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
<div class="col-md-6">
{{> currentMessage}}
</div>
</div>
</div>
</template>
<template name="currentMessage">
{{#with message}}
<div class="panel panel-default currentMessagePanel">
<div class="panel-body">
<h3>{{body}} <span class="label status-{{status}}">{{status}}</span></h3>
<hr />
<h4><span class="glyphicon glyphicon-earphone"></span> {{callback}}</h4>
<hr />
<form>
<p>Notes <textarea name="notes" cols="60" rows="5">{{details.notes}}</textarea></p>
<hr />
<p>
Categories {{#each allCategories}}
<span class="label label-info category">{{this}}</span>{{/each}}
</p>
<p>
Agencies {{#each agencies}}
<span class="label label-default">{{agency}}</span>{{/each}}
<div class="input-group">
{{> agencyAutoComplete}}
</div>
</p>
<hr />
<p>
<button type="submit" class="btn btn-primary done">Done</button>
</p>
</form>
</div>
</div>
{{/with}}
</template>
<template name="agencyAutoComplete">
<span class="input-group-addon">Add...</span>
{{inputAutocomplete settings id="agencies" class="form-control" name="agency"}}
</template>
<template name="autoCompletePill">
<span class="label">{{name}}</span>
</template>
<template name="debug">
<div class="debug">
<p>
<button class="msgGen btn btn-default">Generate new message</button>
<button class="msgClear btn btn-default">Clear all messages</button>
</p>
</div>
</template>