Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $form = ActiveForm::begin([
- 'id' => 'register-form',
- 'action' => ['/'],
- 'options' => ['class' => 'reg__form'],
- 'fieldConfig' => [
- 'template' => "{input}{error}",
- 'options' => ['tag' => false],
- ],
- ]); ?>
- <?=$form->errorSummary($this->params['registerModel'])?>
- <div class="reg__formLeft">
- <?= $form->field($this->params['registerModel'], 'email', [
- 'inputOptions' => [
- 'class' => 'reg__formInp',
- 'type' => 'email',
- 'placeholder' => Yii::t('app','Email'),
- ],
- 'template' => "{input}",
- ])->label(false) ?>
- <?= $form->field($this->params['registerModel'], 'password', [
- 'inputOptions' => [
- 'class' => 'reg__formInp',
- 'type' => 'password',
- 'placeholder' => Yii::t('app','Password'),
- ],
- 'template' => "{input}",
- ])->label(false) ?>
- <?= $form->field($this->params['registerModel'], 'password2', [
- 'inputOptions' => [
- 'class' => 'reg__formInp',
- 'type' => 'password',
- 'placeholder' => Yii::t('app','Repeat password'),
- ],
- 'template' => "{input}",
- ])->label(false) ?>
- </div>
- <div class="reg__formRight">
- <?= $form->field($this->params['registerModel'], 'name', [
- 'inputOptions' => [
- 'class' => 'reg__formInp',
- 'type' => 'text',
- 'placeholder' => Yii::t('app','Name'),
- ],
- 'template' => "{input}",
- ])->label(false) ?>
- <?= $form->field($this->params['registerModel'], 'note', [
- 'inputOptions' => [
- 'class' => 'reg__formInp _textarea',
- 'type' => 'text',
- 'cols' => '30',
- 'rows' => '10',
- 'placeholder' => Yii::t('app','Comment'),
- ],
- 'template' => "{input}",
- ])->label(false)->textarea() ?>
- </div>
- <button class="reg__formBtn" type="submit"><?=Yii::t('app','Registration')?></button>
- <button class="reg__formClose"></button>
- <?php ActiveForm::end(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement