Skip to content
Myr

update.html

This file

Path

examples/tutorial/flaskr/templates/blog/update.html

19 lines · 690 bytes · HTML

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 41aaaf7 point at it.

clean up unused function from prefixed_env prDavid Lordbefore adoption41aaaf7

lines 1–19why, one step back
1{% extends 'base.html' %}
23{% block header %}4 <h1>{% block title %}Edit "{{ post['title'] }}"{% endblock %}</h1>5{% endblock %}67{% block content %}8 <form method="post">9 <label for="title">Title</label>10 <input name="title" id="title" value="{{ request.form['title'] or post['title'] }}" required>11 <label for="body">Body</label>12 <textarea name="body" id="body">{{ request.form['body'] or post['body'] }}</textarea>13 <input type="submit" value="Save">14 </form>15 <hr>16 <form action="{{ url_for('blog.delete', id=post['id']) }}" method="post">17 <input class="danger" type="submit" value="Delete" onclick="return confirm('Are you sure?');">18 </form>19{% endblock %}