?> </div> </div> <?php foreach ($model->authClients as $index => $config) { ?> <div class="panel panel-default authclient-<?php echo $index; ?> "> <div class="panel-heading"> <div class="row"> <div class="col-md-10 col-sm-12"> <?php echo \kartik\widgets\TypeaheadBasic::widget(['model' => $config, 'attribute' => "[{$index}]class_name", 'data' => AuthClientConfig::classNameAutoComplete(), 'pluginOptions' => ['highlight' => true]]); ?> </div> <div class="col-md-2 col-sm-12"> <?php echo Html::a(Icon::show('times') . ' ' . Yii::t('app', 'Delete'), '#', ['class' => 'remove-auth-client btn btn-sm btn-danger pull-right', 'data-index' => $index]); ?> </div> </div> <?php // $form->field( // $config, // "[$index]class_name", // [ // 'options' => [ // 'class' => 'pull-left text-block',
</h2> <?php echo $form->field($model, 'serverName')->hint(Yii::t('app', 'This is the hostname that your site will be using.')); ?> <?php echo $form->field($model, 'serverPort')->hint(Yii::t('app', 'This is port that your site will be using.')); ?> <h2> <?php echo Yii::t('app', 'Cache settings:'); ?> </h2> <?php echo \kartik\widgets\TypeaheadBasic::widget(['model' => $model, 'attribute' => "cacheClass", 'data' => $cacheClasses, 'pluginOptions' => ['highlight' => true, 'limit' => 50]]); ?> <?php echo $form->field($model, 'useMemcached')->checkbox(); ?> <?php echo $form->field($model, 'keyPrefix'); ?> </div> </div> <div class="installer-controls"> <a href="<?php echo Url::to(['admin-user']);
// $form->field($model, 'brands')->textInput()->label(false) ?> <?php echo TypeaheadBasic::widget(['model' => $model, 'attribute' => 'brands', 'data' => ArrayHelper::map(CarBrands::find()->all(), 'id', 'desc'), 'options' => ['placeholder' => 'Filter as Car Brands ...'], 'pluginOptions' => ['highlight' => true]]); ?> </div> <div class="col-xs-4"><span>แบบรถ</span> <?php echo $form->field($model, 'models')->textInput(['maxlength' => true])->label(false); ?> </div> </div> <div class="row"> <div class="col-xs-4"><span>สีรถ</span> <?php echo TypeaheadBasic::widget(['model' => $model, 'attribute' => 'car_color', 'data' => ArrayHelper::map(CarColor::find()->all(), 'id', 'color'), 'options' => ['placeholder' => 'Filter as Car Color ...'], 'pluginOptions' => ['highlight' => true]]); ?> </div> <div class="col-xs-4"><span>น้ำหนักรถ</span> <?php echo $form->field($model, 'weight')->textInput()->label(false); ?> </div> <div class="col-xs-4"><span>น้ำหนักรวม</span> <?php echo $form->field($model, 'total_weight')->textInput()->label(false); ?> </div> </div> <div class="row">