templates/olympiads/faq.html.twig line 1
{% extends 'layout/base.html.twig' %}
{% block title %}
{{ title("title.faq.caption"|trans) }}
{% endblock %}
{% block body %}
{% include "olympiads/iofs/presentation.html.twig" with {item: olympiad} %}
<div class="olympiad iofs">
<div class="container iofs__inner">
<div class="iofs__content">
<div class="iofs__text text-block">
{% if is_granted('ROLE_ADMIN') %}
<a href="{{ path('admin_olympiad_faq_list.ru', {olymp_id: olympiad.id}) }}"
class="btn btn-outline-primary" target="_blank">Редактирование FAQ</a>
{% endif %}
<h1 class="">{{ "title.faq.caption"|trans }}</h1>
<div class="faq-list accordion accordion-type-2">
{% for f in faq %}
<div class="faq-item card">
<div class="faq-question card-header d-flex justify-content-between {% if loop.first %}activestate{% endif %}">
<a role="button" data-toggle="collapse" href="#faq-{{ f.id }}"
class="{% if not loop.first %} collapsed {% endif %}"
aria-expanded="{% if loop.first %}true{% else %}false{% endif %}">{{ f.caption }}</a>
</div>
<div class="collapse {% if loop.first %}show{% endif %}" id="faq-{{ f.id }}">
<div class="faq-answer card-body">{{ f.text|raw }}</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{{ include('olympiads/iofs/stages.html.twig') }}
</div>
</div>
{% endblock %}