Advertisement
alpa_s

Untitled

Jul 30th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.78 KB | None | 0 0
  1.         <?php $form = ActiveForm::begin([
  2.             'id' => 'register-form',
  3.             'action' => ['/'],
  4.             'options' => ['class' => 'reg__form'],
  5.             'fieldConfig' => [
  6.                 'template' => "{input}{error}",
  7.                 'options' => ['tag' => false],
  8.             ],
  9.         ]); ?>
  10.             <?=$form->errorSummary($this->params['registerModel'])?>
  11.             <div class="reg__formLeft">
  12.                 <?= $form->field($this->params['registerModel'], 'email', [
  13.                         'inputOptions' => [
  14.                             'class' => 'reg__formInp',
  15.                             'type' => 'email',
  16.                             'placeholder' => Yii::t('app','Email'),
  17.                         ],
  18.                         'template' => "{input}",
  19.                     ])->label(false) ?>
  20.                 <?= $form->field($this->params['registerModel'], 'password', [
  21.                         'inputOptions' => [
  22.                             'class' => 'reg__formInp',
  23.                             'type' => 'password',
  24.                             'placeholder' => Yii::t('app','Password'),
  25.                         ],
  26.                         'template' => "{input}",
  27.                     ])->label(false) ?>
  28.                 <?= $form->field($this->params['registerModel'], 'password2', [
  29.                         'inputOptions' => [
  30.                             'class' => 'reg__formInp',
  31.                             'type' => 'password',
  32.                             'placeholder' => Yii::t('app','Repeat password'),
  33.                         ],
  34.                         'template' => "{input}",
  35.                     ])->label(false) ?>
  36.             </div>
  37.             <div class="reg__formRight">
  38.                 <?= $form->field($this->params['registerModel'], 'name', [
  39.                     'inputOptions' => [
  40.                         'class' => 'reg__formInp',
  41.                         'type' => 'text',
  42.                         'placeholder' => Yii::t('app','Name'),
  43.                     ],
  44.                     'template' => "{input}",
  45.                 ])->label(false) ?>
  46.                 <?= $form->field($this->params['registerModel'], 'note', [
  47.                     'inputOptions' => [
  48.                         'class' => 'reg__formInp _textarea',
  49.                         'type' => 'text',
  50.                         'cols' => '30',
  51.                         'rows' => '10',
  52.                         'placeholder' => Yii::t('app','Comment'),
  53.                     ],
  54.                     'template' => "{input}",
  55.                 ])->label(false)->textarea() ?>
  56.             </div>
  57.             <button class="reg__formBtn" type="submit"><?=Yii::t('app','Registration')?></button>
  58.             <button class="reg__formClose"></button>
  59.         <?php ActiveForm::end(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement