1👍
✅
You can’t use <p>
inside a <tr>
only <td>
and <th>
are allowed.
You’d want to change it to:
<div class="1" style="overflow-x:auto;">
<table id="1" class="1">
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
</tr>
{% ifequal variable "0" %}
</table>
<p>No items to show</p>
{% else %}
<--append some fields-->
{% endifnotequal %}
</div>
This question might be helpful for you too
0👍
It seems that you’re not doing this correctly. I think there is a tag for putting text below tables, could it be ?
Use the tag at the end (this is a table specific tag, like and ).
But you will need to use this CSS:
caption {
caption-side: bottom;
}
You can check this codepen:
- Django with jquery-fileupload ui throws error with "This field is required."
- My form with a ModelMultipleChoiceField is not saving data.
- Django not searching for translation messages
- How to solve the error with migration django?
Source:stackexchange.com