-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessages.html
More file actions
43 lines (37 loc) · 942 Bytes
/
messages.html
File metadata and controls
43 lines (37 loc) · 942 Bytes
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
{% extends "layout.html" %}
{% block head %}
<script type="text/javascript" src="{{ url_for('static', filename='messages.js') }}"></script>
{% endblock %}
{% block title %}
Channel {{channel.name}}
{% endblock %}
{% block body %}
<output id="channel_id" style="display: none;">{{channel.id}}</output>
<form id="form">
<div class="form-group">
<input id="message" class="form-control" type="name" name="name" placeholder="name">
</div>
<div class="form-group">
<button class="btn btn-primary">Send</button>
</div>
</form>
<h1>Messages</h1>
<div class="form-group">
<table class="table">
<thead>
<tr>
<th scope="col">User</th>
<th scope="col">Message</th>
</tr>
</thead>
<tbody id="messages">
{% for message in messages %}
<tr>
<td>{{ message.user_id }}</td>
<td>{{ message.message }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}