<?php

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

$this->title = 'Update DHCP Client';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    'IP',
    'DHCP Client',
    $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 
            echo "</br>";
            
            $form = ActiveForm::begin(['id' => 'form-dhcpClientupdate']); ?>
            <?= $form->field($model, 'interface')->dropDownList($items, ['options' => [ $x => ['selected ' => true]]]) ?>
            <?= $form->field($model, 'use_peer_dns')->checkBox(['label' => ('Use Peer DNS')]); ?>
            <?= $form->field($model, 'use_peer_ntp')->checkBox(['label' => ('Use Peer NTP')]); ?>
            <?= $form->field($model, 'dhcp_options')->dropDownList($items_option, ['prompt'=>'Choose...','multiple' => 'multiple'])->label('DHCP Options') ?>
            <?= $form->field($model, 'add_default_route')->dropDownList(['no' => 'No', 'special-classless' => 'special classless', 'yes' => 'yes'])->label('Add Default Route') ?>
            <?= $form->field($model, 'default_route_distance')->label('Default Route Distance') ?>
            <?= Html::submitButton('Update', ['class' => 'btn btn-primary', 'name' => 'create-button']) ?>
            <?php echo Html::a('<span class="btn-label">' . ucfirst($action) . '</span>', [$action, 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
            <?php echo Html::a('<span class="btn-label">Release</span>', ['release', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
            <?php echo Html::a('<span class="btn-label">Renew</span>', ['renew', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        </div>

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



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



