refactor templates to use core/base.html, newly created; small accomodations to functional_tests for title and header block rendering
This commit is contained in:
19
templates/core/base.html
Normal file
19
templates/core/base.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="author" content="Disco DeDisco">
|
||||||
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
<title>Dashboard | {% block title_text %}{% endblock title_text %}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Dashboard | {% block header_text %}{% endblock header_text %}</h1>
|
||||||
|
<form method="POST" action="{% block form_action %}{% endblock form_action %}">
|
||||||
|
<input name="item_text" id="id-new-item" placeholder="Enter a to-do item">
|
||||||
|
{% csrf_token %}
|
||||||
|
</form>
|
||||||
|
{% block table %}
|
||||||
|
{% endblock table %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user