Update
This commit is contained in:
21
waiting_room/templates/index.html
Normal file
21
waiting_room/templates/index.html
Normal file
@ -0,0 +1,21 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}Run task{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Index</h1>
|
||||
<section
|
||||
hx-ext="ws"
|
||||
ws-connect="/ws/nombre_temporal/"
|
||||
>
|
||||
<form id="form" ws-send>
|
||||
<input type="submit" name="task" value="calculate">
|
||||
</form>
|
||||
</section>
|
||||
<section>
|
||||
{% if result %}
|
||||
<h2>The result is {{ result }}</h2>
|
||||
{% endif %}
|
||||
</section>
|
||||
<a href="{% url 'waiting_room:about_us' %}">Go to about us</a>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user