{% extends "::base.html.twig" %}

{% block page_title %}{{ 'ss.second_factor.list.title'|trans }}{% endblock %}

{% block content %}
    <h2>{{ block('page_title') }}</h2>

    <h3>{{ 'ss.second_factor.list.unverified.title'|trans }}</h3>

    {% if unverifiedSecondFactors is empty %}
        <p>{{ 'ss.second_factor.list.text.no_second_factors' }}</p>
        <a href="{{ path('ss_registration_display_types') }}"
           class="btn btn-primary">
            {{ 'ss.second_factor.list.button.register_second_factor' }}
        </a>
    {% else %}
        <table class="table-striped">
            <thead>
                <tr>
                    <th>{{ 'ss.second_factor_list.header.type'|trans }}</th>
                    <th>{{ 'ss.second_factor_list.header.second_factor_identifier'|trans }}</th>
                </tr>
            </thead>
            <tbody>
                {% for unverifiedSecondFactor in unverifiedSecondFactors %}
                    <tr>
                        <td>{{ 'ss.second_factor.type.'~unverifiedSecondFactor.type|trans }}</td>
                        <td>{{ unverifiedSecondFactor.secondFactorIdentifier }}</td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    {% endif %}
{% endblock %}

{% extends "::base.html.twig" %}

{% block page_title %}{{ 'ss.second_factor.list.title'|trans }}{% endblock %}

{% block content %}
    <h2>{{ block('page_title') }}</h2>

    <h3>{{ 'ss.second_factor.list.unverified.title'|trans }}</h3>

    {% if unverifiedSecondFactors.elements is empty %}
        <p>{{ 'ss.second_factor.list.text.no_second_factors' }}</p>
        <a href="{{ path('ss_registration_display_types') }}"
           class="btn btn-primary">
            {{ 'ss.second_factor.list.button.register_second_factor' }}
        </a>
    {% else %}
        <table class="table-striped">
            <thead>
                <tr>
                    <th>{{ 'ss.second_factor_list.header.type'|trans }}</th>
                    <th>{{ 'ss.second_factor_list.header.second_factor_identifier'|trans }}</th>
                </tr>
            </thead>
            <tbody>
                {% for unverifiedSecondFactor in unverifiedSecondFactors.elements %}
                    <tr>
                        <td>{{ 'ss.second_factor.type.'~unverifiedSecondFactor.type|trans }}</td>
                        <td>{{ unverifiedSecondFactor.secondFactorIdentifier }}</td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    {% endif %}
{% endblock %}

Use the second factor collection's elements to loop over.
Use the second factor collection's elements to loop over.
