<?php

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

$this->title = 'SNMP Settings';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    'IP',
    $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-smb']);
            ?>
            <?= $form->field($model, 'enabled')->checkBox(); ?>
            <?= $form->field($model, 'contact')->label('Contact Info'); ?>
            <?= $form->field($model, 'location'); ?>
            <?= $form->field($model, 'engine_id')->label('Engine ID'); ?>
            <?= $form->field($model, 'trap_target')->label('Trap Target'); ?>
            <?= $form->field($model, 'trap_community')->dropDownList($comName); ?>
            <?= $form->field($model, 'trap_version')->dropDownList(['1' => '1', '2' => '2', '3' => '3']); ?>
            <?= $form->field($model, 'trap_generators')->dropDownList(['interfaces' => 'interfaces', 'start-trap' => 'start-trap'], ['prompt' => '', 'multiple' => 'multiple']); ?>
            <?= $form->field($model, 'trap_interfaces')->dropDownList($intName, ['prompt' => '', 'multiple' => 'multiple']); ?>
            <?= Html::submitButton('OK', ['class' => 'btn btn-primary', 'name' => 'create-button']);
            echo ' '; ?>
<?= Html::a('<span class="btn-label">Communities</span>', ['mikrotik/ip/snmp/communities/index'], ['class' => 'btn btn-primary']) ?>


<?php ActiveForm::end(); ?>        

        </div>
    </div>
</div>
</div>



