<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\GridView;
use yii\widgets\Menu;
use yii\bootstrap\Tabs;
use yii\widgets\ActiveForm;

$this->title = 'Traffic Flow Target';
$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-shares']); ?>
            <?= $form->field($model, 'dst_address'); ?>
            <?= $form->field($model, 'port'); ?>
            <?=
            $form->field($model, 'version')->dropDownList(['1' => '1',
                '5' => '5',
                '9' => '9']);
            ?>
            <?= $form->field($model, 'v9_template_refresh')->textInput(['readonly' => true]); ?>
            <?= $form->field($model, 'v9_template_timeout')->textInput(['readonly' => true]); ?>
            <?php
            if ($action == 'update') {

                echo Html::submitButton('Update ', ['class' => 'btn btn-primary', 'name' => 'create-button']);
            } else {
                echo Html::submitButton('Create', ['class' => 'btn btn-primary', 'name' => 'create-button      ']);
            }

            ActiveForm::end();
            ?>        

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



