Add a base template
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user