<?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 = 'SMB 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, 'domain'); ?>
            <?= $form->field($model, 'comment'); ?>
            <?= $form->field($model, 'allow_guests')->checkBox(); ?>
            <?= $form->field($model, 'interfaces')->dropDownList($intName, ['prompt' => '', 'multiple' => 'multiple']); ?>
            <?= Html::submitButton('OK', ['class' => 'btn btn-primary', 'name' => 'create-button']) ?>
            <?= Html::a('<span class="btn-label">Shares</span>', ['mikrotik/ip/smb/shares/index'], ['class' => 'btn btn-primary']) ?>
            
            <?= Html::a('<span class="btn-label">Users</span>', ['mikrotik/ip/smb/users/index'], ['class' => 'btn btn-primary']) ?>

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

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



