@@ -37,13 +37,13 @@ def vue_props
3737 def render_checkbox_options
3838 checkbox_options . to_a . each do |item |
3939 input checkbox_attributes ( item )
40- label item_label ( item ) , for : item_id ( item )
40+ label item_label ( item ) , ": for" : item_id ( item )
4141 end
4242 end
4343
4444 def checkbox_attributes ( item )
4545 {
46- id : item_id ( item ) ,
46+ ":id" : item_id ( item ) ,
4747 type : :checkbox ,
4848 name : item_label ( item ) ,
4949 value : item_value ( item ) ,
@@ -57,9 +57,9 @@ def checkbox_attributes(item)
5757 end
5858
5959 def render_true_false_checkbox
60- input true_false_checkbox_attributes . merge ( type : :hidden , id : nil , value : 0 )
61- input true_false_checkbox_attributes . merge ( type : :checkbox , id : item_id ( 1 ) )
62- label input_label , for : item_id ( 1 ) if input_label
60+ input true_false_checkbox_attributes . merge ( type : :hidden , ":id" : nil , value : 0 )
61+ input true_false_checkbox_attributes . merge ( type : :checkbox , ":id" : item_id ( 1 ) )
62+ label input_label , ": for" : item_id ( 1 ) if input_label
6363 end
6464
6565 def true_false_checkbox_attributes
@@ -88,18 +88,18 @@ def checkbox_options
8888 def item_value ( item )
8989 item . is_a? ( Array ) ? item . last : item
9090 end
91-
91+
9292 def item_label ( item )
9393 item . is_a? ( Array ) ? item . first : item
9494 end
9595
9696 def item_id ( item )
97- "#{ id } _#{ item_value ( item ) . to_s . gsub ( " " , '_' ) } "
97+ "#{ id } +' _#{ item_value ( item ) . to_s . gsub ( " " , '_' ) } ' "
9898 end
9999
100100 end
101101 end
102102 end
103103 end
104104 end
105- end
105+ end
0 commit comments