init
This commit is contained in:
commit
5309e0593b
22 changed files with 722 additions and 0 deletions
blog/templates/entries
14
blog/templates/entries/show.html
Normal file
14
blog/templates/entries/show.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% extends "layout.html" %}
|
||||
{% block body %}
|
||||
<h2>{{ entry.title }}</h2>
|
||||
<br>
|
||||
{{ entry.text }}
|
||||
<br><br>
|
||||
投稿日時 {{ entry.created_at }}
|
||||
<form action="{{ url_for('edit_entry', id=entry.id) }}" method="GET">
|
||||
<button type="submit">編集</button>
|
||||
</form>
|
||||
<form action="{{ url_for('delete_entry', id=entry.id) }}" method="POST">
|
||||
<button type="submit">削除</button>
|
||||
</form>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue