Add a base template

This commit is contained in:
Bat
2018-05-09 18:53:12 +01:00
parent 743e6a23d4
commit ae60d5961c
7 changed files with 105 additions and 100 deletions
+18 -19
View File
@@ -1,22 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>New post</title>
</head>
<body>
<h1>Create a post</h1>
<form method="post">
<label for="title">Title</label>
<input name="title">
{% extends "base" %}
<label for="content">Content</label>
<textarea name="content"></textarea>
{% block title %}
New post
{% endblock title %}
<label for="license">License</label>
<input name="license">
{% block content %}
<h1>Create a post</h1>
<form method="post">
<label for="title">Title</label>
<input name="title">
<input type="submit" value="Publish"/>
</form>
</body>
</html>
<label for="content">Content</label>
<textarea name="content"></textarea>
<label for="license">License</label>
<input name="license">
<input type="submit" value="Publish"/>
</form>
{% endblock content %}