<?php

use yii\bootstrap\Alert;

if (Yii::$app->session->getFlash('message') != null) {
    echo Alert::widget([
        'options' => [
            'class' => 'alert-info',
        ],
        'body' => Yii::$app->session->getFlash('message'),
    ]);
}

use yii\helpers\Html;
use yii\widgets\Menu;
use yii\widgets\ActiveForm;

$this->title = 'Watchdog';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    'System',
    $this->title,];
?>
<div class="site-plugins">
    <div class = "row">
        <div class="col-lg-3">

            <?php
            echo Menu::widget($menu);
            ?>

        </div> <div class="col-md-9"> <h1 style="margin-top: 0px"> 
                <?= Html::encode($this->title) ?></h1>
                <?php
                $form = ActiveForm::begin(['id' => 'form-ac']);
                ?>
                <?= $form->field($model, 'watchdog_timer')->checkBox(); ?>
                <?= $form->field($model, 'watch_address')->label('Watch Address'); ?>
                <?= $form->field($model, 'no_ping_delay')->label('Ping Start After Boot'); ?>
                <?= $form->field($model, 'automatic_supout')->checkBox(); ?>
                <?= $form->field($model, 'auto_send_supout')->checkBox(); ?>
                <?= $form->field($model, 'send_email_to')->label('Send Email To'); ?>
                <?= $form->field($model, 'send_email_from')->label('Send Email From'); ?>
                <?= $form->field($model, 'send_smtp_server')->label('Send SMTP Server'); ?>
                <?php
                echo Html::submitButton('OK', ['class' => 'btn btn-primary', 'name' => 'create-button']);
                ?>
        </div>
        <?php ActiveForm::end();
        ?> 
    </div>
</div>
</div>
