Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap : display label in inline form #10103

Closed
klevron opened this issue Nov 5, 2015 · 1 comment
Closed

Bootstrap : display label in inline form #10103

klevron opened this issue Nov 5, 2015 · 1 comment

Comments

@klevron
Copy link
Contributor

klevron commented Nov 5, 2015

Actually if I want to display a label in an inline form, I have to do this :

<?php $form = ActiveForm::begin(['layout' => 'inline']); ?>
    <?= $form->field($model, 'field')->label(null,  ['class' => '']) ?>
<?php ActiveForm::end(); ?>

https://github.com/yiisoft/yii2-bootstrap/blob/2.0.5/ActiveField.php#L379

There should be a proper way to do this (same for enableError), no ?

@yii-bot
Copy link

yii-bot commented Jan 24, 2016

Issue moved to yiisoft/yii2-bootstrap#116

@yii-bot yii-bot closed this as completed Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants