<div class="modal-dialog modal-xl" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <h4 class="modal-title">Custom report</h4>
        </div>
        <div class="modal-body">
            <form method='POST' action='/api/add_custom_report?job={{ job }}'>
            {% csrf_token %}
            <input style="font-size:16px;" class="form-control" placeholder="Имя нового отчета" maxlength='25' id='cur_name' type='text' name='cur_name' size='25'/>
            <br>
            <br>
            <div class="row">
            <div class="col-md-4">
            <div style="display: inline-block; margin-right: 1em;">
            <h4>Обзор теста</h4>
                <input id='quantiles_timeline_plot' name='quantiles_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='quantiles_timeline_plot'>Квантили времен ответа</label>
                <br>
                <input id='timesdist_timeline_plot' name='timesdist_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='timesdist_timeline_plot'>Распределение времен ответа</label>
                <br>
                <input id='http_timeline_plot' name='http_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='http_timeline_plot'>Распределение HTTP кодов</label>
                <br>
                <input id='net_timeline_plot' name='net_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='net_timeline_plot'>Распределение сетевых кодов</label>
                <br>
                <br>
            </div>
            <div style="display: inline-block; margin-right: 1em; position: relative;">
            <h4>Расширенный анализ</h4>
                <input id='cases_avg_timeline_plot' name='cases_avg_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='cases_avg_timeline_plot'>Среднее время ответа по гильзам</label>
                <br>
                <input id='cases_timeline_plot' name='cases_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='cases_timeline_plot'>Количество ответов по гильзам</label>
                <br>
                <input id='avgtimes_timeline_plot' name='avgtimes_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='avgtimes_timeline_plot'>Средние времена</label>
                <br>
                <input id='sent_received_plot' name='sent_received_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='sent_received_plot'>Данные (из танка)</label>
                <br>
                <input id='instanses_timeline_plot' name='instanses_timeline_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='instanses_timeline_plot'>Тестирующие потоки</label>
                <br>
                <br>
            </div>
            <div style="display: inline-block; margin-right: 1em;">
            <h4>Распределения и сводные</h4>
                <input id='times_dist_plot' name='times_dist_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='times_dist_plot'>Распределение времен ответа</label>
                <br>
                <input id='quantiles_vs_times' name='quantiles_vs_times' type='checkbox'/>
                <label style='font-weight: normal;' for='quantiles_vs_times'>Процентиль</label>
                <br>
                <input id='avgtimes_vs_rps' name='avgtimes_vs_rps' type='checkbox'/>
                <label style='font-weight: normal;' for='avgtimes_vs_rps'>Средние времена vs RPS</label>
                <br>
                <input id='avgtimes_vs_instanses' name='avgtimes_vs_instanses' type='checkbox'/>
                <label style='font-weight: normal;' for='avgtimes_vs_instanses'>Средние времена vs потоки</label>
                <br>
                <input id='quantiles_vs_rps' name='quantiles_vs_rps' type='checkbox'/>
                <label style='font-weight: normal;' for='quantiles_vs_rps'>Квантили vs RPS</label>
                <br>
                <input id='quantiles_vs_instanses' name='quantiles_vs_instanses' type='checkbox'/>
                <label style='font-weight: normal;' for='quantiles_vs_instanses'>Квантили vs потоки</label>
                <br>
            </div>
            </div>
            <div class="col-md-4">
            <div style="display: inline-block; margin-right: 1em;">
            <h4>Таблицы</h4>
                <input id='times_dist_table' name='times_dist_table' type='checkbox'/>
                <label style='font-weight: normal;' for='times_dist_table'>Распределение времен ответа</label>
                <br>
                <input id='cases_dist_table' name='cases_dist_table' type='checkbox'/>
                <label style='font-weight: normal;' for='cases_dist_table'>Распределение ответов по гильзам</label>
                <br>
                <input id='cases_netcodes_table' name='cases_netcodes_table' type='checkbox'/>
                <label style='font-weight: normal;' for='cases_netcodes_table'>Сетевые коды по гильзам</label>
                <br>
                <input id='cases_httpcodes_table' name='cases_httpcodes_table' type='checkbox'/>
                <label style='font-weight: normal;' for='cases_httpcodes_table'>HTTP коды по гильзам</label>
                <br>
                <input id='cases_cumulative_quantiles_table' name='cases_cumulative_quantiles_table' type='checkbox'/>
                <label style='font-weight: normal;' for='cases_cumulative_quantiles_table'>Кумулятивные квантили по гильзам</label>
                <br>
                <input id='multitag_dist_table' name='multitag_dist_table' type='checkbox'/>
                <label style='font-weight: normal;' for='multitag_dist_table'>Распределение ответов по тэгам</label>
                <br>
                <input id='multitag_cumulative_quantiles_table' name='multitag_cumulative_quantiles_table' type='checkbox'/>
                <label style='font-weight: normal;' for='multitag_cumulative_quantiles_table'>Кумулятивные квантили по тэгам</label>
                <br>
                <input id='multitag_httpcodes_table' name='multitag_httpcodes_table' type='checkbox'/>
                <label style='font-weight: normal;' for='multitag_httpcodes_table'>HTTP коды по тэгам</label>
                <br>
                <input id='multitag_netcodes_table' name='multitag_netcodes_table' type='checkbox'/>
                <label style='font-weight: normal;' for='multitag_netcodes_table'>Сетевые коды по тэгам</label>
                <br>
                <input id='http_dist_table' name='http_dist_table' type='checkbox'/>
                <label style='font-weight: normal;' for='http_dist_table'>Распределение HTTP кодов</label>
                <br>
                <input id='net_dist_table' name='net_dist_table' type='checkbox'/>
                <label style='font-weight: normal;' for='net_dist_table'>Распределение сетевых кодов</label>
                <br>
                <input id='quantiles_cumulative_table' name='quantiles_cumulative_table' type='checkbox'/>
                <label style='font-weight: normal;' for='quantiles_cumulative_table'>Кумулятивные квантили</label>
                <br>
                <input id='trail_aggregates_table' name='trail_aggregates_table' type='checkbox'/>
                <label style='font-weight: normal;' for='trail_aggregates_table'>Агрегаты</label>
                <br>
                <br>
            </div>
            </div>
            <div class="col-md-4">
            <div style="display: inline-block; margin-right: 1em;">
            <h4>Мобильные</h4>
                <input id='mobile_quantiles_plot' name='mobile_quantiles_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='mobile_quantiles_plot'>Квантили</label>
                <br>
            </div>
            </div>
            <div class="col-md-4">
            <div style="display: inline-block; margin-right: 1em;">
            <h4>Мониторинг</h4>
                <input id='monitoring_net_plot' name='monitoring_net_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_net_plot'>Сеть</label>
                <br>
                <input id='monitoring_disk_plot' name='monitoring_disk_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_disk_plot'>Диск</label>
                <br>
                <input id='monitoring_memory_plot' name='monitoring_memory_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_memory_plot'>Память</label>
                <br>
                <input id='monitoring_cpu_plot' name='monitoring_cpu_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_cpu_plot'>CPU</label>
                <br>
                <input id='monitoring_system_plot' name='monitoring_system_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_system_plot'>System</label>
                <br>
                <input id='monitoring_aggregates_table' name='monitoring_aggregates_table' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_aggregates_table'>Агрегаты мониторинга</label>
                <br>
            {% if custom_metrics_single or custom_metrics_groups %}
                {% for cm in custom_metrics_single %}
                <input id='monitoring_customs:{{ cm }}_plot' name='monitoring_customs:{{ cm }}_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_customs:{{ cm }}_plot'>custom:{{ cm }}</label>
                <br>
                {% endfor %}
                {% for cmg in custom_metrics_groups %}
                <input id='monitoring_customg:{{ cmg }}_plot' name='monitoring_customg:{{ cmg }}_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_customg:{{ cmg }}_plot'>custom:{{ cmg }} (group)</label>
                <br>
                {% endfor %}
            {% else %}
                <input id='monitoring_custom_plot' name='monitoring_custom_plot' type='checkbox'/>
                <label style='font-weight: normal;' for='monitoring_custom_plot'>custom</label>
                <br>
            {% endif %}
            </div>
            </div>
            </div>
            <br>
            <input class='btn btn-brand firestarter_input' type='submit' value='Сохранить'/>
            </form>
        </div>
    </div>
</div>
