23 lines
492 B
HTML
23 lines
492 B
HTML
{% 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 }})
|
|
</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>
|