forked from CS673Smr16Team1/project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchatRoomView.handlebars
171 lines (157 loc) · 7.55 KB
/
chatRoomView.handlebars
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-12 has-inner-drawer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span id="channelCount">Channels</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu channelMenu">
<!-- Channels dynamically added to list -->
<span id="channelList"></span>
<li role="separator" class="divider"></li>
<li role="presentation"><a aria-hidden="true" data-toggle="modal" data-target="#createChannel">Create a Channel... <i class="fa fa-plus-circle"></i></a></li>
<li role="separator" class="divider"></li>
<li role="presentation"><a aria-hidden="true" data-toggle="modal" data-target="#archiveChannel">Archive a Channel... <i class="fa fa-archive"></i></a></li>
<li role="separator" class="divider"></li>
<li role="presentation"><a aria-hidden="true" data-toggle="modal" data-target="#unarchiveChannel">Unarchive a Channel... <i class="fa fa-undo"></i></a></li>
</ul>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span id="userCount"><span class="hidden-xs">Direct</span> Message</span>
<span class="caret"></span>
</button>
<ul id="userList" class="dropdown-menu">
<!-- List of users you can message -->
</ul>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default" href="#searchDrawer" data-toggle="drawer"><span class="fa fa-search"> </span>Search</button>
</div>
</div>
<div id="currentChannel">Channel Name</div>
<div id="chatSection">
<ul id="messages"></ul>
</div>
<form id="msgForm" action="">
<div class="form-group">
<textarea id="chatInput" class="form-control" placeholder="Message..." autocomplete="off"></textarea>
</div>
</form>
<div class="drawerController">
<!-- Drawer -->
<div id="searchDrawer" class="drawer drawer-inside dw-xs-12 fold" aria-labelledby="searchDrawer">
<div class="drawer-contents">
<div class="col-md-12">
<div class="drawer-heading">
<!--<h2 class="drawer-title">-->
<form class="drawer-title" id="searchForm" action="">
<input type="text" id="searchInput" placeholder="Search" autocomplete="off" maxlength="200"/>
<button type="button" class="btn btn-default pull-right" href="#searchDrawer" data-toggle="drawer">Close <span class="fa fa-times"></span></button>
</form>
<!--</h2>-->
</div>
<br>
<div class="table-responsive">
<table class="table" id="searchResultsTable">
<!--<thead>
<tr>
<th>User</th>
<th>Date</th>
<th>Message</th>
<th>Channel</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
</tbody>-->
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal for creating a new channel-->
<div class="modal fade" id="createChannel" tabindex="-1" role="dialog" aria-labelledby="createChannelLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title" id="createChannelLabel">Create New Channel</h4>
</div>
<div class="modal-body">
<form class="form-inline roomCreation">
<div class="form-group">
<label for="newChannelName">Channel Name</label>
<input id="newChannelName"
type="text" placeholder="Channel Name">
</div>
<button type="submit" class="btn btn-primary" id="createChannelBtn">Create</button>
</form>
</div>
<div class="modal-footer">
<p></p>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal for archiving a channel-->
<div class="modal fade" id="archiveChannel" tabindex="-1" role="dialog" aria-labelledby="archiveChannelLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title" id="archiveChannelLabel">Archive a Channel</h4>
</div>
<div class="modal-body">
<form class="form-inline archiveForm">
<select id="archiveChannelDropdown">
</select>
<button type="submit" class="btn btn-primary" id="archiveChannelBtn">Archive</button>
</form>
</div>
<div class="modal-footer">
<p></p>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal for unarchiving a channel-->
<div class="modal fade" id="unarchiveChannel" tabindex="-1" role="dialog" aria-labelledby="unarchiveChannelLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title" id="unarchiveChannelLabel">Unarchive a Channel</h4>
</div>
<div class="modal-body">
<form class="form-inline unarchiveForm">
<select id="unarchiveChannelDropdown">
</select>
<button type="submit" class="btn btn-primary" id="unarchiveChannelBtn">Unarchive</button>
</form>
</div>
<div class="modal-footer">
<p></p>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>