-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
From Twitter bootstrap 3 documentation, they created a checkbox like this.
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label>
<input type="checkbox"> Remember me
</label>
</div>
</div>
</div>But when I write the code according to the Bootstrapper documentation, like this,
ControlGroup::generate(
Form::label('control', ' '),
[
[
'label' => ['remember_me', 'Remember me'],
'input' => ['type' => 'checkbox', 'remember_me', 'Remember me']
]
],
'',
4
)And it comes out like this
<div class='form-group'>
<label for="control" class="control-label col-sm-4">
</label>
<div class='col-sm-8'>
<label for="remember" class="control-label">
Remember me
</label>
<input name="first" type="checkbox" value="First" id="first">
<br />
</div>
</div>The generated form looks a little strange and crowded. So is there anyway to prepend the checkbox inside the label?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels