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
+16 -17
View File
@@ -1,19 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Login</title>
</head>
<body>
<h1>Login</h1>
<form method="post">
<label for="email_or_name">Username or email</label>
<input name="email_or_name">
{% extends "base" %}
<label for="password">Password</label>
<input type="password" name="password">
{% block title %}
Login
{% endblock title %}
<input type="submit" value="Login"/>
</form>
</body>
</html>
{% block content %}
<h1>Login</h1>
<form method="post">
<label for="email_or_name">Username or email</label>
<input name="email_or_name">
<label for="password">Password</label>
<input type="password" name="password">
<input type="submit" value="Login"/>
</form>
{% endblock content %}