{% for tab in tabs %}
{% if not tab.read_only or tab.visual_only %}
{% include "ochre/template_pack/tab_control.html" with index=forloop.counter title=tab.title uid=uid %}
{% endif %}
{% endfor %}
{% for tab in tabs %}
{% if not tab.read_only or tab.visual_only %}
{% include "ochre/template_pack/tab_content.html" with index=forloop.counter content=tab uid=uid %}
{% endif %}
{% endfor %}