other files inadvertently skipped in prev commit
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>To-Do lists</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Your To-Do List</h1>
|
||||
<form method="POST" action="/apps/dashboard/{{ list.id }}/add-item">
|
||||
<input name="item_text" id="id-new-item" placeholder="Enter a to-do item">
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
<table id="id-list-table">
|
||||
{% for item in list.item_set.all %}
|
||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
{% extends "core/base.html" %}
|
||||
|
||||
{% block title_text %}Your to-do list{% endblock title_text %}
|
||||
{% block header_text %}Your to-do list{% endblock header_text %}
|
||||
|
||||
{% block form_action %}/apps/dashboard/{{ list.id }}/add-item{% endblock form_action %}
|
||||
|
||||
{% block table %}
|
||||
<table id="id-list-table">
|
||||
{% for item in list.item_set.all %}
|
||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock table %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user