Logo
Explore Help
Register Sign In
discoman/python-tdd
1
0
Fork 0
You've already forked python-tdd
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
b09bec02dc0e3162226f4758f981404c1da88894
python-tdd/templates/apps/dashboard/list.html

17 lines
508 B
HTML
Raw Normal View History

created apps/dashboard/list.html template (for now, mirrors home.html); changes ListViewTest() to DashViewTest() in apps.dashboard.tests; added new list template test to same; updated view_list() FBV in .views to accomodate this new template
2026-01-02 19:50:27 -05:00
<html>
<head>
<title>To-Do lists</title>
</head>
<body>
<h1>Your To-Do List</h1>
in apps.dashboard.tests & .urls, adding a new to-do item to the input field in either home.html or a blank-tabled list.html points to /apps/dashboard/newlist; in .views, home_page() FBV simplified to a mere html page render & new_list() FBV added that currently points to the global list
2026-01-02 21:50:37 -05:00
<form method="POST" action="/apps/dashboard/newlist">
created apps/dashboard/list.html template (for now, mirrors home.html); changes ListViewTest() to DashViewTest() in apps.dashboard.tests; added new list template test to same; updated view_list() FBV in .views to accomodate this new template
2026-01-02 19:50:27 -05:00
<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 items %}
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
{% endfor %}
</table>
</body>
</html>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.7 Page: 242ms Template: 14ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API