form code placeholders left commented-out in apps.dashboard.views; base.html somewhat retrofitted w. dynamic form views
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user