chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Resources/views/Admin/Settings/search.html.twig

Summary

Maintainability
Test Coverage
{% extends "@ChamiloCore/Layout/layout_one_col.html.twig" %}
{% from '@ChamiloCore/Admin/Settings/actions.html.twig' import update %}
{% set namespace = app.request.get('namespace') %}

{% block content %}
    <div class="flex">
        <div class="w-1/5">
        {% include '@ChamiloCore/Admin/Settings/menu.html.twig' %}
        </div>
        <div class="w-4/5">
            <div class="q-card p-4">
                <form class="w-full form-horizontal"
                      action="{{ path('chamilo_platform_settings_search', {'keyword': keyword}) }}"
                      method="post"
                >
                    {{ form_widget(search_form) }}
                </form>
                <hr />
                <div class="row">
                    {% for category, form in form_list %}
                    <div class="col-md-12">
                        <h4>{{ category | trans }}</h4>
                        <div class="box box-primary">
                            <div class="box-body">
                                {{ form_errors(form) }}
                                <form
                                    class="form-horizontal"
                                    action="{{ path('chamilo_platform_settings', {'namespace': category, 'keyword': keyword} ) }}"
                                    method="post"
                                    novalidate
                                >
                                    {{ form_rest(form) }}
                                    {{ update() }}
                                </form>
                            </div>
                        </div>
                    </div>
                    {% endfor %}
                </div>
            </div>
        </div>
    </div>
{% endblock %}