I am trying to collect data using a large input field. However when I use the template format, code is somehow taking that as a default bootstrap small font.
Here is my form snippet:
<?php $form = ActiveForm::begin([
'id' => 'login-form',
'options' => ['class' => 'form-horizontal'],
]); ?>
…
<?= $form->field($model, 'demo',['template' => '{label} <div class="row">
<div class="col-lg col-lg-6">{input}{error}{hint}</div></div>']
)->textInput(['placeholder' => 'Input value'])->label(false) ?>
When I examine on the Chrome developer tools/F12, source renders as
<input type="text" id="model-demo" class="form-control" name="Tasks[owner]" placeholder="Owner">
when I manually change this to
<input type="text" id="model-demo" class="form-control" name="Tasks[owner]" placeholder="Owner">
form input changes to large font.
How can I change the form layout to take the class="form-control input-lg" using the above notation?
Thank you.