Ejemplo n.º 1
0
?>

                <?php 
echo $form->field($model, 'email')->textInput()->label('Sähköposti');
?>

                <?php 
echo $form->field($model, 'puhnro')->textInput()->label('Puhelinnumero');
?>

                <?php 
echo $form->field($model, 'password')->passwordInput()->label('Salasana');
?>

                <?php 
echo $form->field($model, 'yritys_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Yritys::find()->all(), 'id', 'yritysnimi'), 'language' => 'fi', 'options' => ['placeholder' => 'Valitse yritys'], 'pluginOptions' => ['allowClear' => true]]);
?>

                <?php 
echo $form->field($model, 'passwordConfirm')->passwordInput()->label('Uudelleen syötä salasana');
?>

                <div class="form-group">
                    <?php 
echo Html::submitButton('Rekisteröidy', ['class' => 'btn btn-primary', 'name' => 'signup-button']);
?>
                </div>

            <?php 
ActiveForm::end();
?>
Ejemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getYritys()
 {
     return $this->hasOne(Yritys::className(), ['id' => 'yritys_id']);
 }