Diary/templates/diary.html
2014-05-25 15:54:54 +02:00

26 lines
683 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Diary {{ diary.name }}</title>
<link rel="stylesheet" href="{{ url_for('static',filename='style.css') }}"/>
<script src="{{ url_for('static',filename='script.js') }}"></script>
</head>
<body>
<p>{{ diary.name }}:</p>
<form action="{{ url_for('addentry',name=diary.name) }}" method="POST">
<input type="textarea" name="text" autofocus>
<button type="submit">Submit</button>
</form>
<div>
{% for e in entries %}
<p>
{{ e.date }}:
<p>
{{ e.text }}
</p>
</p>
{% endfor %}
</div>
</body>
</html>