test-space / templates /home.html
shubhajit07's picture
Initial
32471ec
raw
history blame contribute delete
606 Bytes
{% extends 'base.html' %} {% block content %}
<form method="post" class="buttons">
<h3>Enter The Chat Room</h3>
<div>
<label>Name:</label>
<input
type="text"
placeholder="Pick a name!"
name="name"
value="{{name}}"
/>
</div>
<div class="join">
<input type="text" placeholder="Room Code" name="code" value="{{code}}" />
<button type="submit" name="join">Join a Room</button>
</div>
<button type="submit" name="create" class="create-btn">Create a Room</button>
{% if error %}
<ul>
<li>{{error}}</li>
</ul>
{% endif %}
</form>
{% endblock %}