<?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 = 'DHCP Config';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    $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-dhcpServerconfig']);
            ?>

            <label class="control-label" for="dhcpserverconfig">Store Leases On Disk</label>
            <input type="text" class="form-control" name="Dhcpserveroptions[store_leases_disk]" list="op" value=<?php echo $model->store_leases_disk ?>>
            <datalist id="op">
                <option value='immediately'>immediately</option>
                <option value='never'>never</option>
            </datalist>
            </br>

        <?= Html::submitButton('OK', ['class' => 'btn btn-primary', 'name' => 'config-button']) ?>
        </div>
<?php ActiveForm::end(); ?> 
    </div>
</div>
</div>