} ?> <?php $formRender = new FormElements($this, $model); $formRender->startForm(); $formRender->showErrors(); if ($isNewRecord) { $formRender->textField('username', Yii::t('AuthModule.forms', 'Registration form. Username placeholder')); if (isset($inivtationGuid)) { $model->invitationGuid = $inivtationGuid; //$formRender->textField('invitationGuid', Yii::t('AuthModule.forms', 'Invitation')); $formRender->from->hiddenField($model, 'invitationGuid'); } } else { $formRender->textFieldDisabled('username'); } $formRender->textField('email', Yii::t('AuthModule.forms', 'User form. Email placeholder')); $formRender->textField('full_name', Yii::t('AuthModule.forms', 'User form. Fullname placeholder')); $formRender->passwordField('password_entered', Yii::t('AuthModule.forms', 'User form. Password placeholder')); $formRender->capthaField('verifyCode'); if ($isNewRecord) { $termsUrl = Yii::app()->createUrl('site/page', array('view' => 'terms')); $formRender->termsField('termsSigned', $termsUrl); $formRender->submitButton(Yii::t('AuthModule.forms', 'Registration form. Submit button')); } else { $formRender->submitButton(Yii::t('AuthModule.forms', 'Update form. Submit button')); } $formRender->endForm(); ?>