{% extends app['twig_theme'] ~ '/' ~ 'layout.twig' %}
{% import  app['twig_theme'] ~ '/macro/iptw_macro.twig' as main_macro %}

{% set title = 'Users'|trans ~ ': ' ~ 'list of filters of users'|trans %}


{% block footer_js %}
    
        {{ parent() }}
        {% include app.twig_theme ~ "/basic_templates/scripts-datatables.twig" %}
        {% include app.twig_theme ~ "/basic_templates/scripts-select2.twig" %}

        <script src="{{app.request_context.baseUrl}}/plugins/datatables/extensions/FixedHeader/js/dataTables.fixedHeader.js"></script>
        <link  href="{{app.request_context.baseUrl}}/plugins/datatables/extensions/FixedHeader/css/fixedHeader.dataTables.css" rel="stylesheet">

{% endblock %}
{% block footer %}

        {{ parent() }}
        {% include (app['twig_theme'] ~ "/basic_templates/events_menu.twig") %}

        <script type="text/javascript" defer="defer">
            {% include (app.twig_theme ~ "/Users/users_filter_list/users_filter_list.js.twig") %}
        </script>

{% endblock %}


{% block content %}
    <div id="iptv_list">
        <div class="row  filters-actions-pannel">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                {{ main_macro.get_filter('admin_id', 'Author'|trans, 'id', 'login', allAdmins, 2) }}
                {{ main_macro.get_filter('favorites', 'Favorites'|trans, 'id', 'title', favList, 2) }}

                <div class="pull-right">
                    <a href="{{ app.request_context.baseUrl }}/users/users-list" title="{{ 'Go to Users page and set up new filter'|trans }}" class="btn btn-success pull-right" data-id="all">{{ 'Create new filter'|trans }}</a>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="box">
                {{ main_macro.get_dropdown_attribute(dropdownAttribute) }}
                <div class="box-content">
                    <div class="box-content no-padding">
                        <div class="dataTables_processing"></div>
                        <table class="table  table-hover table-datatable" id="datatable-1">
                            {{ main_macro.get_datatable_head(dropdownAttribute) }}
                            <tbody>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}
