{% extends "layout.html" %}
{% block body %}
<form action="{{ url_for('update_entry', id=entry.id) }}" method="post">
    <label for="title">タイトル</label>
    <input type="text" id="title" name=title value={{ entry.title }}>
    <label for="text">本文</label>
    <textarea id="text" name=text rows="3">{{ entry.text | safe }}</textarea>
    <button type="submit">更新</button>
</form>
{% endblock %}