use yii\helpers\ArrayHelper; use dosamigos\multiselect\MultiSelect; MultipleSelectAsset::register($this); /* @var $this yii\web\View */ /* @var $model app\models\Question */ /* @var $form yii\widgets\ActiveForm */ $translationId = $model->tr_id; if (empty($translationId)) { $questions = ['' => 'Bitte wählen Sie'] + ArrayHelper::map(app\models\Question::find()->orderBy('fr_id')->all(), 'fr_id', function ($model, $defaultValue) { return $model->fr_id . ' - ' . $model->frage; }); } else { $questionModel[] = app\models\Question::findOne($model->t_fr_id); $questions = ['' => 'Bitte wählen Sie'] + ArrayHelper::map($questionModel, 'fr_id', 'frage'); } $languages = ['' => 'Bitte wählen Sie'] + ArrayHelper::map(app\models\Language::find()->orderBy('l_id')->all(), 'l_id', 'name'); ?> <div class="question-form"> <?php $form = ActiveForm::begin(); ?> <div class="form-group <?php if (isset($model->errors['t_fr_id'])) { ?> has-error <?php } ?> ">
<h3><?php echo Yii::t("app", "Install Wizard"); ?> : <?php echo Yii::t("app", "Add User"); ?> </h3> <div class="iPage"> <?php use yii\helpers\ArrayHelper; use kartik\select2\Select2; $languages = ArrayHelper::map(app\models\Language::find()->All(), 'id', 'name'); $form = kartik\form\ActiveForm::begin(array('id' => 'user-form', 'enableAjaxValidation' => true, 'type' => kartik\form\ActiveForm::TYPE_HORIZONTAL)); ?> <?php echo $form->errorSummary($model); ?> <?php echo $form->field($model, 'username'); ?> <?php echo $form->field($model, 'fname'); ?> <?php echo $form->field($model, 'lname'); ?>
<?php use yii\widgets\ActiveForm; use yii\helpers\ArrayHelper; /* @var $this yii\web\View */ $this->title = 'Victor 2014'; $languages = ['default' => 'Default'] + ArrayHelper::map(app\models\Language::find()->all(), 'l_id', 'name'); ?> <div class="form-div"> <?php if ($error) { ?> <div class="alert alert-danger" role="alert"> <?php echo $error; ?> </div> <?php } ?> <h4>Wenn Sie einen persönlichen Code für das Umfragesystem haben, geben Sie diesen bitte hier ein:</h4> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'code')->textInput(); ?> <?php
<?php $theme = array(); //foreach(Yii::$app->themeManager->themeNames as $key=>$value) // $theme[$value]=$value; ?> <?php app\widgets\TbPanel::begin(array('header' => Yii::t('app', "User Workspace"))); ?> <?php echo $form->field($model, 'theme')->widget(Select2::classname(), ['data' => $theme]); ?> <?php echo $form->field($model, 'timezone')->widget(Select2::classname(), ['data' => app\models\Timezone::makeList()]); ?> <?php echo $form->field($model, 'language')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\Language::find()->All(), 'id', 'name')]); ?> <?php echo $form->field($model, 'certfile')->fileInput(); ?> <?php echo ($model->hasCert() ? Yii::t('app', "Has certifcate file") : '') . "<br>"; ?> <?php echo $form->field($model, 'certpasswd'); ?> <?php app\widgets\TbPanel::end(); ?> </div> <div class="col-md-4 col-sm-6">