parent
3cd0aa3932
commit
41a8cb5836
3 changed files with 49 additions and 3 deletions
collector/templates/collector
14
collector/templates/collector/base.html
Normal file
14
collector/templates/collector/base.html
Normal 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>
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue