{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <div class="row max-width-initial">
        <div class="small-12 columns">
            <div class="content-container">
                <div class="content-container-content">
                    <div class="row max-width-initial">
                        <div class="large-12 columns">
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Date From</label>
                                    <input type="text" class="date" id="date_from" value="{{ 'now'|date('m/d/Y') }}" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Date To</label>
                                    <input type="text" class="date" id="date_to" value="{{ 'now'|date('m/d/Y') }}" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Category</label>
                                    <select class="js-multiple-reminderType" name="" id="reminderTypes" multiple="multiple" style="">
                                        {% for reminderTypes in reminderType %}
                                            <option value="{{ reminderTypes.id }}">{{ reminderTypes.description }}</option>
                                        {% endfor %}
                                    </select>
                                    <input type="hidden" id="form-reminderType-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>User Group</label>
                                    <select class="js-multiple-userGroup" name="" id="userGroups" multiple="multiple" style="">
                                        {% for userGroups in userGroup %}
                                            <option value="{{ userGroups.id }}">{{ userGroups.description }}</option>
                                        {% endfor %}
                                    </select>
                                    <input type="hidden" id="form-userGroup-id" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Status</label>
                                    <select id="status">
                                        <option value='All' selected="selected">All</option>
                                        <option value='Pending'>Pending</option>
                                        <option value='Completed'>Completed</option>
                                    </select>
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>User</label>
                                    <input type="text" id="form-account-user" />
                                    <input type="hidden" id="form-account-user-id" />
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/report_reminder/preview',
                        'export_to_pdf_url': 'main/report/report_reminder/export_to_pdf',
                        'export_to_excel_url': 'main/report/report_reminder/export_to_excel',
                        'paramsIds': 'date_from|date_to|form-reminderType-id|form-userGroup-id|status|form-account-user-id'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        jQ('.js-multiple-reminderType, .js-multiple-userGroup, js-multiple-userGroup').select2();
        reminder.settings.account_user_autocompleteUrl = '{{ path('account_user_autocomplete') }}';
        jQ(document).ready(function(){
            report.init('{{ app.environment }}');
            reminder.init();
        });
        //]]>
    </script>
{% endblock %}