-
Notifications
You must be signed in to change notification settings - Fork 1
/
chat.html.twig
27 lines (21 loc) · 926 Bytes
/
chat.html.twig
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
{% extends 'base.html.twig' %}
{% block body %}
<div class="uk-card uk-card-default uk-card-body">
<h2 class="uk-card-title">Chat Messages</h2>
<div id="chat-container" class="uk-flex uk-flex-column-reverse uk-overflow-auto uk-height-large uk-height-max-large">
</div>
<form class="uk-form-stacked uk-margin-top" id="chat-form">
<div class="uk-margin">
<input type="hidden" name="username" value="{{ username }}">
<textarea class="uk-textarea" rows="2" placeholder="Message" aria-label="Message" name="message"></textarea>
</div>
<div class="uk-margin uk-text-right">
<button class="uk-button uk-button-primary">Send</button>
</div>
</form>
</div>
<script>
const username = "{{ username }}";
</script>
<script src="/script/chat.js"></script>
{% endblock %}