46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Aplikacja To-Do</title>
|
||
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css') }}">
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Aplikacja To-Do</h1>
|
||
|
|
||
|
<h2>Zadania</h2>
|
||
|
<ul>
|
||
|
{% for task in tasks %}
|
||
|
<li>
|
||
|
{{ task[1] }}
|
||
|
<form action="{{ url_for('delete', task_id=task[0]) }}" method="post">
|
||
|
<button type="submit">Usuń</button>
|
||
|
</form>
|
||
|
<form action="{{ url_for('complete', task_id=task[0]) }}" method="post">
|
||
|
<button type="submit">Wykonane</button>
|
||
|
</form>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
|
||
|
<h2>Wykonane zadania</h2>
|
||
|
<ul>
|
||
|
{% for task in completed_tasks %}
|
||
|
<li>{{ task[1] }}
|
||
|
<form action="{{ url_for('delete', task_id=task[0]) }}" method="post">
|
||
|
<button type="submit">Usuń</button>
|
||
|
</form>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
|
||
|
<h2>Dodaj nowe zadanie</h2>
|
||
|
<form action="{{ url_for('add') }}" method="post">
|
||
|
<label for="task">Wpisz Zadanie:</label>
|
||
|
<input type="text" id="task" name="task" required><br><br>
|
||
|
<button type="submit">Dodaj zadanie</button>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|