{% extends "jinja/types/page.html" %}

{% set title %}{{ page.get_title() }}{% endset %}

{% block content %}
    <div class="row text-center mb-2">
        <h1 class="text-primary display-1">
            {{ page.get_title() }}
        </h1>
    </div>

    {% for faq in page.get_content() %}
        <div class="row">
            <div class="col-1">
            </div>

            <a class="btn btn-primary text-center" data-bs-toggle="collapse"
                   href="#{{ page.get_content()[faq]['tag'] }}" role="button" aria-expanded="false"
                    aria-controls="{{ page.get_content()[faq]['tag'] }}">
                <h2>{{ faq }}</h2>
            </a>

            <div class="collapse" id="{{ page.get_content()[faq]['tag'] }}">
                <div class="card card-body text-center">
                    {{ page.get_content()[faq]['answer'] }}
                </div>
            </div>

            <div class="col-1">
            </div>
        </div>

        <hr class="invisible">
    {% endfor %}
{% endblock %}

