$input = $form->field($profile, $field->varname); if ($widgetEdit = $field->widgetEdit($profile)) { echo $widgetEdit; } elseif ($field->range) { echo $input->dropDownList(Profile::range($field->range)); } elseif ($field->field_type == "TEXT") { echo $input->textarea(['rows' => 6, 'cols' => 50]); } else { echo $input->textInput(['size' => 60, 'maxlength' => $field->field_size ? $field->field_size : 255]); } } } ?> <?php if (Module::doCaptcha('registration')) { echo $form->field($model, 'captcha')->widget(\yii\captcha\Captcha::classname(), ['captchaAction' => '/site/captcha'])->hint(Module::t("Please enter the letters as they are shown in the image above.") . "<br/>" . Module::t("Letters are not case-sensitive.")); } ?> <div class="form-group"> <?php echo Html::submitButton(Module::t('Register'), ['class' => 'btn btn-success']); ?> </div> <?php ActiveForm::end(); ?> </div>