summaryrefslogtreecommitdiffstats
path: root/flaskr/templates/blog/update.html
diff options
context:
space:
mode:
Diffstat (limited to 'flaskr/templates/blog/update.html')
-rw-r--r--flaskr/templates/blog/update.html20
1 files changed, 0 insertions, 20 deletions
diff --git a/flaskr/templates/blog/update.html b/flaskr/templates/blog/update.html
deleted file mode 100644
index 7420f57..0000000
--- a/flaskr/templates/blog/update.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends 'base.html' %}
-
-{% block header %}
- <h1>{% block title %}Edit "{{ post['title'] }}"{% endblock %}</h1>
-{% endblock %}
-
-{% block content %}
- <form method="post">
- <label for="title">Title</label>
- <input name="title" id="title"
- value="{{ request.form['title'] or post['title'] }}" required>
- <label for="body">Body</label>
- <textarea name="body" id="body">{{ request.form['body'] or post['body'] }}</textarea>
- <input type="submit" value="Save">
- </form>
- <hr>
- <form action="{{ url_for('blog.delete', id=post['id']) }}" method="post">
- <input class="danger" type="submit" value="Delete" onclick="return confirm('Are you sure?');">
- </form>
-{% endblock %} \ No newline at end of file