diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-22 11:53:17 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-22 11:53:17 -0400 |
commit | fa05af49285585ec90fb78693565e54afc73bfdf (patch) | |
tree | f562d2c2918e366d1ba0cb3acd5aa185d1c2b915 /app/views | |
parent | 0665e442de8245c5b5a135fee14f589b0bfa00c3 (diff) | |
parent | db45b2441bd57a5e640b529ef6239c98a3030fe2 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/tournaments/_selected.html.erb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/tournaments/_selected.html.erb b/app/views/tournaments/_selected.html.erb index eec8b5e..a4efa4f 100644 --- a/app/views/tournaments/_selected.html.erb +++ b/app/views/tournaments/_selected.html.erb @@ -18,21 +18,23 @@ <% end %> <%= fields_for "tournament[settings]", @tournament.settings do |setting_fields| %> - <% @tournament.settings.each do |setting| %> + <% @game.settings.each do |setting| %> <p> <%= setting_fields.label setting.name %> <br> - <% case setting.stype %> + <% case setting.vartype %> <% when 0 %> <%= setting_fields.text_field( setting.name ) %> <% 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_fields.collection_radio_buttons( setting.name, setting.type_opt.split(','), "first", "last", { item_wrapper_tag: false } ) %> <% when 3 %> - <%= setting_fields.collection_check_boxes( setting.name, setting.type_opt.split(','), :first, :last, { item_wrapper_tag: false } ) %> + <%= setting_fields.collection_check_boxes( setting.name, setting.type_opt.split(','), "first", "last", { item_wrapper_tag: false } ) %> <% when 4 %> + <%= setting_fields.label "true" %> <%= setting_fields.radio_button( setting.name, "true" ) %> + <%= setting_fields.label "false" %> <%= setting_fields.radio_button( setting.name, "false" ) %> <% when 5 %> <%= setting_fields.select( setting.name, setting.type_opt.split(',') ) %> |