projekt_paradygmaty_lidia_w.../task_search.html

25 lines
858 B
HTML
Raw Normal View History

2024-06-17 10:52:23 +02:00
<!DOCTYPE html>
<html>
<head>
<title>Search Tasks</title>
<link rel="stylesheet" type="text/css" href="/abcd.css">
</head>
<body>
<h1>Search Tasks</h1>
<form action="/search" method="post" class="task-form">
<label for="keyword">Keyword:</label>
<input type="text" id="keyword" name="keyword" required>
<button type="submit" class="button">Search</button>
</form>
<a href="/" class="button">Back to List</a>
{% if keyword %}
<h2>Search Results for "{{ keyword }}"</h2>
<ul class="task-list">
{% for task in tasks %}
<li>{{ task.description }} <a href="/edit/{{ task.id }}" class="button">Edit</a> <a href="/delete/{{ task.id }}" class="button delete">Delete</a></li>
{% endfor %}
</ul>
{% endif %}
</body>
</html>