22 lines
466 B
HTML
22 lines
466 B
HTML
|
{% 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 %}
|