<?php

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

$this->title = 'Update Address';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    'IP',
    'Addresses',
    $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 update address:</p>
            <?php $form = ActiveForm::begin(['id' => 'form-addressCreate']); ?>
            <?= $form->field($model, 'address')->label('Address')->textInput(['readonly' => $visible]) ?> 
            <?= $form->field($model, 'network')->label('Network')->textInput(['readonly' => $visible]) ?> 
            <?= $form->field($model, 'interface')->dropDownList($items, ['options' => [ $x => ['selected ' => true]], "disabled" => $disabled]) ?>
            <?= Html::submitButton('Update', ['class' => 'btn btn-primary', 'name' => 'create-button']) ?>
            <?= Html::a('<span class="btn-label">'.ucfirst($action).'</span>', [$action, 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        </div>
        <?php ActiveForm::end(); ?>                       
    </div>
</div>
</div>



