-
Notifications
You must be signed in to change notification settings - Fork 207
/
main.html
35 lines (35 loc) · 1.3 KB
/
main.html
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
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
</head>
<body>
<div class="container m-3">
<div class="row align-items-center justify-content-center">
<div class="col">
<h1 class="mb-5">Asynchronous addition using Celery!</h1>
<div class="row my-3">
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-info">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
</div>
<form action="/add" method="POST" class="form-inline">
<div class="form-group">
<label for="x">X</label>
<input id="x" class="form-control mx-3" type="number" name="x"/>
</div>
<div class="form-group mx-3">
<label for="y">Y</label>
<input id="y" class="form-control mx-3" type="number" name="y"/>
</div>
<button class="btn btn-primary" type="submit">Add X and Y</button>
</form>
</div>
</div>
</div>
</body>
</html>