teilchensammler/collector/templates/collector/index.html
bronsen 27c9a3a35b [collector] can now collect Teile and list them
If a newly entered Teil already exists, we ignore that and do nothing.

"name" could become a primary key...
2025-03-13 16:32:31 +01:00

23 lines
459 B
HTML

{% if teile_list %}
<ul>
{% for teil in teile_list %}
<li>
<a href="{% url 'collector:detail' teil.id %}">
{{ teil.name }}
</a> ({{ teil.modified }})
</li>
{% endfor %}
</ul>
{% else %}
<p>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>