Form::label
확인란과 라디오 입력을 사용하여 bootstrap에서 제안하는 마크 업을 생성 할 수 있습니까? 목표는 입력 필드를 id
으로 첨부하는 대신 레이블 안에 넣는 것입니다. 나는 당신이 당신의 자신의 폼 매크로를 작성하고 그러나 당신이 좋아하는 HTML을 구축하는 것을 사용할 수 Form::radio
라벨 및 라벨 안에 Laravel이있는
<div class="checkbox">
<label>
<input type="checkbox" value="">
Option one is this and that—be sure to include why it's great
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that—be sure to include why it's great
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
</div>
. 다행히도 번들 구현은 이미 존재합니다 : http://bundles.laravel.com/search/tag/Bootstrap (bootsparks, bootstrapper) –
Form 클래스를 확장하는 방법을 알아 냈습니다. 밝혀 졌 더라면 나는 단지 ': D – Unnawut