{% for i in range(counter) %}
{% set count = 0 %}
<div class="tablerow balls" name={{count}}>
<div class="positionz colors rowitem"><div class="cellvalue gposition">{{(job[i]["position"])}}</div>
<button class="edit"><img src="{{ url_for('static', filename='img/pencil.png') }}" width="40px" height="40px"></button>
<button class=submitedit>Submit Edit</button></div>
<div class="companyz colors rowitem"><div class="cellvalue gcompany">{{(job[i]["company"])}}</div>
<button class="edit"><img src="{{ url_for('static', filename='img/pencil.png') }}" width="40px" height="40px"></button>
<button class=submitedit>Submit Edit</button></div>
<div class="descriptionz colors rowitem"><div class="cellvalue gdescription">{{(job[i]["description"])}}</div>
<button class="edit"><img src="{{ url_for('static', filename='img/pencil.png') }}" width="40px" height="40px"></button>
<button class=submitedit>Submit Edit</button></div>
<button class="delete"> <img src="{{ url_for('static', filename='img/minus.png') }}" width="40px" height="40px"></button>
<label class="switch">
<input type="checkbox" class="highlight">
<span class ="slider"></span>
</label>
</div>
{% set count = count + 1 %}
{% endfor %}
I have tried to find a way to properly utilised count but it seems no matter what I do it won't work properly.