Skip to content
Myr

create.html

This file

Path

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

15 lines · 447 bytes · HTML

Last changed by

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

History of this file

Take it

Merge pull request #2676 from davidism/tutorialDavid Lordbefore adoptionc3e2ff2

lines 1–15why, one step back
1{% extends 'base.html' %}
23{% block header %}4 <h1>{% block title %}New Post{% 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'] }}" required>11 <label for="body">Body</label>12 <textarea name="body" id="body">{{ request.form['body'] }}</textarea>13 <input type="submit" value="Save">14 </form>15{% endblock %}