<?php

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

$this->title = 'Socks settings';
$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-Socks']); ?>
                <?= $form->field($model, 'enabled')->checkBox(); ?>
                <?= $form->field($model, 'port'); ?>
                <?= $form->field($model, 'connection_idle_timeout')->label('Connection Idle Timeout'); ?>
                <?= $form->field($model, 'max_connections')->label('Max Connections'); ?>
                <?php echo Html::submitButton('OK', ['class' => 'btn btn-primary', 'name' => 'create-button']); ?>
                <?php echo ' '; ?>
                <?= Html::a('<span class="btn-label">Connections</span>', ['mikrotik/ip/socks/connections/index'], ['class' => 'btn btn-primary']) ?>
                <?php echo ' '; ?>
                <?= Html::a('<span class="btn-label">Access</span>', ['mikrotik/ip/socks/access/index'], ['class' => 'btn btn-primary']) ?>

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