Skip to content

Commit

Permalink
Add StaticCombo to checkDomain instead dropDown
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Feb 5, 2016
1 parent e0200f8 commit 4dd44d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/views/domain/checkDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

use hipanel\modules\domain\assets\DomainCheckPluginAsset;
use hipanel\modules\domain\models\Domain;
use hiqdev\combo\StaticCombo;
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;

DomainCheckPluginAsset::register($this);
hipanel\frontend\assets\IsotopeAsset::register($this);
\hipanel\frontend\assets\HipanelAsset::register($this);

//Yii::$app->assetManager->forceCopy = true; // todo: remove this line
Yii::$app->assetManager->forceCopy = true; // todo: remove this line

$this->title = Yii::t('hipanel/domain', 'Domain check');
$this->breadcrumbs->setItems([
Expand Down Expand Up @@ -283,7 +284,13 @@ function concatValues(obj) {
<!-- /.col-md-8 -->
<div class="col-md-4">
<div class="form-group">
<?= $form->field($model, 'zone')->dropDownList($dropDownZonesOptions, ['class' => 'form-control input-lg']); ?>
<?= $form->field($model, 'zone')->widget(StaticCombo::classname(), [
'data' => $dropDownZonesOptions,
'hasId' => false,
'inputOptions' => [
'class' => 'form-control input-lg'
]
]); ?>
</div>
</div>
<!-- /.col-md-3 -->
Expand Down

0 comments on commit 4dd44d4

Please sign in to comment.