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:
Disco DeDisco
2026-01-03 19:20:41 -05:00
parent 779f46c5ba
commit a393628ca2

19
templates/core/base.html Normal file
View 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>