You can use my extension yii2-widgets and refer the input group addons section which simplifies this for ActiveForm and ActiveField for all bootstrap form orientations (horizontal, vertical, or inline). If you are using the extension, its as simple as typing :[s]
Alternatively, if you do not want to use the extension, you can pass the template property to style as per your required input-group. You will need to then do this for every text input field where you need this.
[size="4"]NOTE: This extension has been upgraded and the new syntax for addons is mentioned here[/size]
Thanks! I am using your widgets so it would be easy to change this code. Change the template is another option but for now I prefer to use your widget.
A good improvement can be add the append and prepend in the same field like the example of bootstrap