|
|
@ -71,17 +71,17 @@ use yii\helpers\ArrayHelper; |
|
|
|
* ]); |
|
|
|
* ]); |
|
|
|
* |
|
|
|
* |
|
|
|
* // With 'default' layout you would use 'template' to size a specific field: |
|
|
|
* // With 'default' layout you would use 'template' to size a specific field: |
|
|
|
* // echo $form->field($model, 'demo', [ |
|
|
|
* echo $form->field($model, 'demo', [ |
|
|
|
* // 'template' => '{label} <div class="row"><div class="col-sm-4">{input}{error}{hint}</div></div>' |
|
|
|
* 'template' => '{label} <div class="row"><div class="col-sm-4">{input}{error}{hint}</div></div>' |
|
|
|
* // ]); |
|
|
|
* ]); |
|
|
|
* |
|
|
|
* |
|
|
|
* // Input group |
|
|
|
* // Input group |
|
|
|
* echo $form->field($model, 'demo', [ |
|
|
|
* echo $form->field($model, 'demo', [ |
|
|
|
* 'inputTemplate' => '<div class="input-group"><span class="input-group-addon">@</span>{input}</div>', |
|
|
|
* 'inputTemplate' => '<div class="input-group"><span class="input-group-addon">@</span>{input}</div>', |
|
|
|
* ]); |
|
|
|
* ]); |
|
|
|
* |
|
|
|
* |
|
|
|
* ActiveForm::end(); |
|
|
|
* ActiveForm::end(); |
|
|
|
* ``` |
|
|
|
* ``` |
|
|
|
* |
|
|
|
* |
|
|
|
* @see \yii\bootstrap\ActiveForm |
|
|
|
* @see \yii\bootstrap\ActiveForm |
|
|
|
* @see http://getbootstrap.com/css/#forms |
|
|
|
* @see http://getbootstrap.com/css/#forms |
|
|
|