{% macro menu_item(id, active, label) %}
    <li class="nav-item">
        <a href="#panel-{{ id }} " class="nav-link {{ active ? 'active' }}"
           data-toggle="tab" role="tab"
           aria-controls="panel-{{ id }}">
            {{ label }}
            <i class="fa fa-exclamation-circle invalid-form"></i>
        </a>
    </li>
{% endmacro %}