How can I organize my form, I'm using bootstrap but I can't organize the description field which is a textarea under the other two inputtext
This is the code I am using
<form>
<div class="form-row">
<div class="form-group col-md-4">
<?= $form->field($model, 'idArea')->textInput(['maxlength' => true]) ?>
</div>
<div class="form-group col-md-4">
<?= $form->field($model, 'Nombre')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class="form-row">
<?= $form->field($model, 'Descripcion')->textarea(['maxlength' => true, 'style' => 'width:40%']) ?>
</div>
</form>
If I understand the problem correctly:
So to put it below the two inputs and occupy "the full width" you have several options:
Use the class
col
on each element in the row:Use the typical 12-column grid syntax: