9 <?php
if (Yii::app()->user->hasFlash(
'registration')): ?>
11 <?php echo Yii::app()->user->getFlash(
'registration'); ?>
16 <?php
$form = $this->beginWidget(
'UActiveForm', array(
17 'id' =>
'registration-form',
18 'enableAjaxValidation' =>
true,
19 'disableAjaxValidationAttributes' => array(
'RegistrationForm_verifyCode'),
20 'clientOptions' => array(
21 'validateOnSubmit' =>
true,
23 'htmlOptions' => array(
'enctype' =>
'multipart/form-data'),
26 <p
class=
"note"><?php echo
UserModule::t(
'Fields with <span class="required">*</span> are required.'); ?></p>
28 <?php echo $form->errorSummary(array($model, $profile)); ?>
31 <?php echo $form->labelEx($model,
'username'); ?>
32 <?php echo $form->textField($model,
'username'); ?>
33 <?php echo $form->error($model,
'username'); ?>
37 <?php echo $form->labelEx($model,
'password'); ?>
38 <?php echo $form->passwordField($model,
'password'); ?>
39 <?php echo $form->error($model,
'password'); ?>
41 <?php echo
UserModule::t(
"Minimal password length 4 symbols."); ?>
46 <?php echo $form->labelEx($model,
'verifyPassword'); ?>
47 <?php echo $form->passwordField($model,
'verifyPassword'); ?>
48 <?php echo $form->error($model,
'verifyPassword'); ?>
52 <?php echo $form->labelEx($model,
'email'); ?>
53 <?php echo $form->textField($model,
'email'); ?>
54 <?php echo $form->error($model,
'email'); ?>
63 <?php echo $form->labelEx($profile, $field->varname);
66 if ($widgetEdit = $field->widgetEdit($profile)) {
68 } elseif ($field->range) {
69 echo $form->dropDownList($profile, $field->varname,
Profile::range($field->range));
70 } elseif ($field->field_type ==
"TEXT") {
71 echo$form->textArea($profile, $field->varname, array(
'rows' => 6,
'cols' => 50));
73 echo $form->textField($profile, $field->varname, array(
'size' => 60,
'maxlength' => (($field->field_size) ? $field->field_size : 255)));
76 <?php echo $form->error($profile, $field->varname);
86 <?php echo $form->labelEx($model,
'verifyCode'); ?>
88 <?php $this->widget(
'CCaptcha'); ?>
89 <?php echo $form->textField($model,
'verifyCode'); ?>
90 <?php echo $form->error($model,
'verifyCode'); ?>
92 <p
class=
"hint"><?php echo
UserModule::t(
"Please enter the letters as they are shown in the image above."); ?>
93 <br/><?php echo
UserModule::t(
"Letters are not case-sensitive."); ?></p>
97 <div
class=
"row submit">
101 <?php $this->endWidget(); ?>