I have a activeform view that I modified from the one created by gii.
I changed the layout using Bootstrap to lay the page out nicely.
The page works just fine, but the tabindex order was not what I wanted.
The obvious solution ( i thought ). was to add tabindex…
However, adding the tabindex stuff changed some layout stuff!!! Now my fields don’t line up any more!!
What I started with is:
<?= $form->field($model, ‘name’)->textInput([‘maxlength’ => 50]) ?>
6894
field from output file
<div class="form-group field-sessions-name">
<label class="control-label" for="sessions-name">Name</label>
<input type="text" id="sessions-name" class="form-control" name="Sessions[name]" value="Around the World" maxlength="50">
<div class="help-block"></div>
</div>
But what I finished with was:
<?= $form->field($model, 'name', ['inputOptions' => ['tabindex' => '1']] )->textInput(['maxlength' => 50]) ?>
6895
field from output file
<div class="form-group field-sessions-name">
<label class="control-label" for="sessions-name">Name</label>
<input type="text" id="sessions-name" name="Sessions[name]" value="Around the World" maxlength="50" tabindex="1">
<div class="help-block"></div>
</div>
Anyone got ideas on how to fix this??