{%if control==true%}
<form style="width:200px;" id="interval" method="POST">
    <label>Период:</label>
    <select onchange="jQuery('#interval').submit();" name="interval">
        <option {{sel}} value="{{interval}}">{{interval}} дней</option>
        <option {{sel30}} value="30">1 месяц</option>
        <option {{sel7}} value="7">1 наделя</option>
        <option {{sel1}} value="1">1 день</option>
    </select>
</form><br/>
{%endif%}

<div class="panel">
    <div class="panel-heading">
        <div class="panel-control">
            <div class="btn-group">
                <button type="button" class="btn btn-default" data-toggle="dropdown"><i
                            class="demo-pli-gear icon-lg"></i></button>
                <ul class="dropdown-menu dropdown-menu-right">
                    <li><a href="{{ admin_path('/diamond/system/logs') }}">Перейти к логу</a></li>
                </ul>
            </div>
        </div>
        <h3 class="panel-title">{{ title }}</h3>
    </div>
    <div class="panel-body">
        <div  style="height: {{height}}px; padding: 0px; position: relative;" id="{{id}}"></div>
    </div>
</div>
