[collector] templates now render html5

closes 
This commit is contained in:
bronsen 2025-03-15 13:27:19 +01:00
parent 3cd0aa3932
commit 41a8cb5836
3 changed files with 49 additions and 3 deletions
collector/templates/collector

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Teilchensammler</title>
<!-- <link href="css/style.css" rel="stylesheet"> -->
</head>
<body>
{% block content %}
{% endblock content %}
</body>
</html>

View file

@ -1,2 +1,20 @@
{% extends "collector/base.html" %}
{% block content %}
<h1>[{{ teil.id }}] {{ teil.name }}</h1>
Last Changed: {{ teil.modified }}
Last Changed: {{ teil.modified | date:"Y-m-d H:i:s e" }}
<p>
See the <a href="{% url "collector:list" %}">{{ default_teile_number }} most recent Teile</a>.
</p>
<p>
See <a href="{% url "collector:list-all" %}"> ALL the Teile in the database</a>.
</p>
<p>
<a href="{% url "collector:list" %}">home</a>
</p>
{% endblock content %}

View file

@ -1,3 +1,7 @@
{% extends "collector/base.html" %}
{% block content %}
{% if teile_list %}
<ul>
@ -5,14 +9,14 @@
<li>
<a href="{% url 'collector:detail' teil.id %}">
<strong>[{{ teil.id }}]</strong> {{ teil.name }}
</a> ({{ teil.modified }})
</a> ({{ teil.modified | date:"Y-m-d H:i:s e" }})
</li>
{% endfor %}
</ul>
{% else %}
<p>Keine Teile da.</p>
<p>Noch keine Teile da.</p>
{% endif %}
@ -21,3 +25,13 @@
<input type="text" name="new_name" value="">
<input type="submit" name="submit" value="add new Teil">
</form>
<p>
See <a href="{% url "collector:list-all" %}">ALL the Teile in the dabase</a>.
</p>
<p>
<a href="{% url "collector:list" %}">home</a>
</p>
{% endblock content %}