{% load i18n %}
{% load core_tags %}

    <h2>{% trans 'Progress' %}</h2>

    <div class="progress">
        <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
             style="width: {$ service.questionset.progress $}%;">
            <span></span>
        </div>
    </div>

    <h2>{% trans 'Navigation' %}</h2>

    <p class="help-block">
        {% trans 'Please note that using the navigation will discard any usaved input.' %}
    </p>

    <ul class="list-unstyled">
        <li>
            <a href="" ng-class="{ disabled: service.questionset.prev === null }" ng-click="service.prev()">
                {% trans 'skip to previous page' %}
            </a>
        </li>
        <li>
            <a href="" ng-class="{ disabled: service.questionset.next === null }" ng-click="service.next()">
                {% trans 'skip to next page' %}
            </a>
        </li>
    </ul>

    <ul class="list-unstyled">
        <li>
            <a href="{% url 'project' project.id %}">{% trans 'Back to project overview' %}</a>
        </li>
    </ul>

    <h2>{% trans 'Overview' %}</h2>

    <ul class="list-unstyled project-questions-overview">
        <li ng-repeat="section in service.catalog.sections">
            <a href="" ng-click="service.jump(section)">
                {$ section.title $}
            </a>

            <ul class="list-unstyled"
                ng-show="section.id == service.questionset.section.id">
                <li ng-repeat="questionset in section.questionsets"
                    ng-class="{'active': questionset.id == service.questionset.id}">

                    <a href="" ng-click="service.jump(section, questionset)">
                        {$ questionset.title $}
                    </a>
                </li>
            </ul>
        </li>
    </ul>
