M
M
Mikha Pankratov2015-03-13 09:14:34
Yii
Mikha Pankratov, 2015-03-13 09:14:34

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>

and another problem appeared
<div class="form-group field-signupform-username required">

This div jumps out and spoils the layout of my form... can I somehow remove it? or what to do with it so as not to spoil the picture?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2015-03-13
@frmax

Well css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question