teilchensammler/collector/templates/collector/index.html
bronsen 41a8cb5836
All checks were successful
ci/woodpecker/push/workflow/1 Pipeline was successful
ci/woodpecker/push/workflow/2 Pipeline was successful
[collector] templates now render html5
closes #6
2025-03-15 13:28:41 +01:00

37 lines
746 B
HTML

{% extends "collector/base.html" %}
{% block content %}
{% if teile_list %}
<ul>
{% for teil in teile_list %}
<li>
<a href="{% url 'collector:detail' teil.id %}">
<strong>[{{ teil.id }}]</strong> {{ teil.name }}
</a> ({{ teil.modified | date:"Y-m-d H:i:s e" }})
</li>
{% endfor %}
</ul>
{% else %}
<p>Noch keine Teile da.</p>
{% endif %}
<form method="POST" action="{% url 'collector:enter' %}">
{% csrf_token %}
<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 %}