ラジオボタン用ウィジェトです。
AlRadios.new("名前", オプション)
オプション
AlRadios.new("radio1", :options=>{c1:"CHOICE1", c2:"CHOICE2", c3:"CHOICE3"}, :value=>:c2)
make_tag()出力
<label><input type="radio" name="radio1" id="radio1_c1" value="c1">CHOICE1</label>
<label><input type="radio" name="radio1" id="radio1_c2" value="c2" checked>CHOICE2</label>
<label><input type="radio" name="radio1" id="radio1_c3" value="c3">CHOICE3</label>
AlRadios.new("radio1", :options=>{c1:"CHOICE1", c2:"CHOICE2", c3:"CHOICE3"}, :required=>true)
AlRadios.new("radio1", :options=>{c1:"CHOICE1", c2:"CHOICE2", c3:"CHOICE3"}, :separator=>"<br>")
make_tag()出力
<label><input type="radio" name="radio1" id="radio1_c1" value="c1">CHOICE1</label><br>
<label><input type="radio" name="radio1" id="radio1_c2" value="c2">CHOICE2</label><br>
<label><input type="radio" name="radio1" id="radio1_c3" value="c3">CHOICE3</label><br>