{% for req in obj.requirements %}
                    {% set outer_loop = loop %}
                    
                    {{ loop.index}} {{ req.name }}
                    Owner: {{ req.owner }}
                    {% if req.tests %}
                        {% if req.tests.manual is defined and req.tests.manual is not none %}
                        
Manual tests
                            {% for test in req.tests.manual %}
                            
                            
{{ outer_loop.index }}.{{ loop.index }}
                            {% include "_test_details.html" %}
                            
                            {% endfor %}
                        {% endif %}
                        {% if req.tests.automated is defined and req.tests.automated is not none %}
                        
Automated tests
                            {% for test in req.tests.automated %}
                            
                            
{{ outer_loop.index }}.{{ loop.index }}
                            {% include "_test_details.html" %}
                            
                            {% endfor %}
                        {% endif %}
                    {% endif %}