So I am trying to iterate through my csv file, then retrieving data that has a 1 in one of the fields and display it. However when I run it it is saying it is expecting and endif (which I have) what am I doing wrong?
Heres the code.
{% for validated in bookingList %}
<tr>
{% if (value == '1') %}
<td></td>
<table>
{% for aDate in bookingList %}
<tr>
{% for item in aDate%}
<td>
{{item}}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endif %}
</tr>
{% endfor %}
Aucun commentaire:
Enregistrer un commentaire