<?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 = 'New ARP';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    'IP',
    'ARP',
    $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>

            <p>Please fill this up to add new ARP:</p>
            <?php $form = ActiveForm::begin(['id' => 'form-arpCreate']); ?>
            <?= $form->field($model, 'address')->label('IP Address') ?>
            <?= $form->field($model, 'mac_address')->label('MAC Address') ?>
            <?= $form->field($model, 'interface')->dropDownList($items, ['options' => [ 0 => ['selected ' => true]]]) ?>
            <?= $form->field($model, 'published')->checkBox(); ?>
        <?= Html::submitButton('Create', ['class' => 'btn btn-primary', 'name' => 'create-button']) ?>
        </div>
<?php ActiveForm::end(); ?>                       
    </div>
</div>
</div>



