form code placeholders left commented-out in apps.dashboard.views; base.html somewhat retrofitted w. dynamic form views

This commit is contained in:
Disco DeDisco
2026-01-19 22:19:33 -05:00
parent 0014d9124a
commit 5b1f28db4b
2 changed files with 13 additions and 7 deletions

View File

@@ -18,12 +18,16 @@
<h2 class="display-2 mb-2">{% block header_text %}{% endblock header_text %}</h2>
<form method="POST" action="{% block form_action %}{% endblock form_action %}">
<input
name="item_text"
id="id-new-item"
class="form-control form-control-lg {% if error %}is-invalid{% endif %}"
placeholder="Enter a to-do item"
/>
{% if form %}
{{ form.text }}
{% else %}
<input
class="form-control form-control-lg{% if error %} is-invalid{% endif %}"
name="item_text"
id="id-new-item"
placeholder="Enter a to-do item"
/>
{% endif %}
{% csrf_token %}
{% if error %}
<div class="invalid-feedback">{{ error }}</div>