Hi guys, i wrote a script for convert a json with hmtl inside, in a rendered pdf, everything works, but!
I never used html so I'm getting a bit mad, how can i add checkboxes in the second for cicle(<li></li>) ?
The f variable is a list of answers(from the json), i need to add a checkbox in every answer.
How? i saw the docs, but i don't know if and where to put "input type="checkbox" id="checkbox">"
Code:
{%for elemento in elementi%}
{%if not elemento.tipo%}
<h1>{{elemento.html | safe}}</h1>
{%else%}
<ul>
{%for f in elemento.form %}
<li>{{f}}</li>
{%endfor%}
</ul>
{%endif%}
{%endfor%}
Thanks for helping!
برچسب:
نویسنده: آیلین رضوانی
تاريخ: پنجشنبه
2 شهريور
1396 ساعت: 23:38