summaryrefslogtreecommitdiff
path: root/app/views/tournaments
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-23 14:11:33 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-23 14:11:33 -0400
commitea69ff0abf4968474c4ccd4282f30f2d4880f9d9 (patch)
tree2a813eada900c57bc2d07f3c861a307bdff02048 /app/views/tournaments
parentbe84f6e73afad63ead4e8dccf8aac75d539a0490 (diff)
Fixed the Damned-able radio buttons
Diffstat (limited to 'app/views/tournaments')
-rw-r--r--app/views/tournaments/_selected.html.erb16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/views/tournaments/_selected.html.erb b/app/views/tournaments/_selected.html.erb
index 7f0cf81..6ba56be 100644
--- a/app/views/tournaments/_selected.html.erb
+++ b/app/views/tournaments/_selected.html.erb
@@ -32,14 +32,18 @@
<% when 1 %>
<%= setting_fields.text_area( setting.name ) %>
<% when 2 %>
- <%= setting_fields.collection_radio_buttons( setting.name, setting.type_opt.split(','), "first", "last", { item_wrapper_tag: false } ) %>
+ <% setting.type_opt.split(',').each do |option|%>
+ <%= setting_fields.radio_button( setting.name, option ) %> <%= option %> <br>
+ <% end %>
<% when 3 %>
- <%= setting_fields.collection_check_boxes( setting.name, setting.type_opt.split(','), "first", "last", { item_wrapper_tag: false } ) %>
+ <% setting.type_opt.split(',').each do |option|%>
+ <%= setting_fields.check_box( setting.name, option ) %> <%= option %> <br>
+ <% end %>
<% when 4 %>
- <%= setting_fields.label "true" %>
- <%= setting_fields.radio_button( setting.name, "true" ) %>
- <%= setting_fields.label "false" %>
- <%= setting_fields.radio_button( setting.name, "false" ) %>
+ <%# setting_fields.label "true" %>
+ <%= setting_fields.radio_button( setting.name, "true" ) %> True
+ <%# setting_fields.label "false" %>
+ <%= setting_fields.radio_button( setting.name, "false" ) %> False
<% when 5 %>
<%= setting_fields.select( setting.name, setting.type_opt.split(',') ) %>
<% end %>