Answer the question
In order to leave comments, you need to log in
ActiveForm - layout problem (form-group field-signupform-username required) how to solve?
Good afternoon,
I'm suffering with ActiveForm / made a form
<?php $form = ActiveForm::begin([
'action' => '/site/singup',
'method' => 'POST',
'id' => 'form-signup',
'options' => ['class' => 'reg-from-popup'],
]); ?>
<div class=r-f-b>
<?= $form->field($model, 'username', [
'inputTemplate' => '<div class=r-f-pp>
<label for=name> <span>Ваше имя</span>{input}</label></div>',
])->label(false)->error(false); ?>
<?= $form->field($model, 'lastname', [
'inputTemplate' => '<div class=r-f-pp>
<label for=last-name> <span>Фамилия</span> {input}</label></div>',
])->label(false)->error(false); ?>
</div>
<?= $form->field($model, 'email', [
'inputTemplate' => '<div class=r-f-b>
<div class=r-f-pp-l>
<label for=mail> <span>Электронная почта</span> {input}</label>
<p class=p-att>Нужна чтобы вы смогли войти на сайт. Отправлять ничего не будем.</p>
</div>
</div> ',
])->label(false)->error(false); ?>
<div class=r-f-b>
<?= $form->field($model, 'password', [
'inputTemplate' => '
<div class=r-f-pp>
<label for=pwd> <span>Пароль</span> {input}</label>
</div>',
])->passwordInput()->label(false)->error(false); ?>
<div class=r-f-pp-h>
<?= Html::submitButton('Готово!', ['class' => 'card-button blue', 'name' => 'signup-button']) ?>
</div>
</div>
<div class="form-group field-signupform-username required">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question