From 83e9c1bc5d285db2ad54d52171573f3cc739c3c8 Mon Sep 17 00:00:00 2001
From: AndrewMurrell
Date: Wed, 23 Apr 2014 14:43:18 -0400
Subject: updated views for tournament and seeds
---
app/views/tournaments/_selected.html.erb | 2 +-
app/views/tournaments/show.html.erb | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
(limited to 'app')
diff --git a/app/views/tournaments/_selected.html.erb b/app/views/tournaments/_selected.html.erb
index 6ba56be..4efd17a 100644
--- a/app/views/tournaments/_selected.html.erb
+++ b/app/views/tournaments/_selected.html.erb
@@ -37,7 +37,7 @@
<% end %>
<% when 3 %>
<% setting.type_opt.split(',').each do |option|%>
- <%= setting_fields.check_box( setting.name, option ) %> <%= option %>
+ <%= check_box_tag(setting.name, value = option, checked = false, options = {}) %> <%= option %>
<% end %>
<% when 4 %>
<%# setting_fields.label "true" %>
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index 3f8552e..a5eb46c 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -57,6 +57,13 @@
<%= @tournament.sampling_method %>
+<% @tournament.settings.each do |setting| %>
+
+ <%= setting.name %>
+ <%= setting.value %>
+
+<% end %>
+
--
cgit v1.2.3-54-g00ecf