Upload files to "templates"
This commit is contained in:
parent
9ec2c9199b
commit
9a2c9e46e4
45
templates/index.html
Normal file
45
templates/index.html
Normal file
@ -0,0 +1,45 @@
|
||||
<!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>
|
Loading…
Reference in New Issue
Block a user