36 lines
920 B
HTML
36 lines
920 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<body>
|
|
<form action="/accounts/logout/" method="POST">
|
|
{% csrf_token %}
|
|
<input type="submit" value="Log out">
|
|
</form>
|
|
|
|
<h1>Hello, {{user.username }}!</h1>
|
|
|
|
<h2>Notes:</h2>
|
|
{% for note in notes %}
|
|
<h4>{{note.time}}:</h4>
|
|
{{note.body}}
|
|
<form action="/remove/{{note.id}}/" method="POST">
|
|
{% csrf_token %}
|
|
<input type="submit" value="Delete">
|
|
</form>
|
|
{% endfor %}
|
|
|
|
<h2>Add note: </h2>
|
|
<form action="/add/" method="POST">
|
|
{% csrf_token %}
|
|
<input type="text" id="body" name="body"><br><br>
|
|
<input type="submit" value="Add note">
|
|
</form>
|
|
|
|
<h2>Search notes: </h2>
|
|
<form action="/search/" method="GET">
|
|
<label for="keyword">Search Text:</label><br>
|
|
<input type="text" id="keyword" name="keyword"}><br><br>
|
|
<input type="submit" value="Search">
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|