<?php

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

$this->title = 'Create IP Pool';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    'IP',
    'Pool',
    $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 ip pool:</p>
            <?php $form = ActiveForm::begin(['id' => 'form-iPCreate']); ?>
            <?= $form->field($model, 'name') ?>
            <?= $form->field($model, 'ranges')->label('First address') ?>
            <?= $form->field($model, 'ranges2')->label('Last address') ?>
            <?= $form->field($model, 'next_pool')->dropDownList($items, ['options' => [ 0 => ['selected ' => true]]]) ?>

        <?= Html::submitButton('Create', ['class' => 'btn btn-primary', 'name' => 'create-button']) ?>
        </div>
<?php ActiveForm::end(); ?>                       
    </div>
</div>
</div>



