{% csrf_token %} {% for blister in blister_layout %} {% if forloop.counter0 == 0 or forloop.counter0|divisibleby:"4" %} {% endif %} {% if blister.cup_label == 0 %} {% else %} {% endif %} {% if forloop.counter == 4 or forloop.counter|divisibleby:"4" %} {% endif %} {% endfor %}
   /   /   /   / 
 /     {{ blister.cup_label }}