aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-19 16:31:00 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-19 16:31:00 +0100
commitdebd09d74509b18578eb72f447e797c1dac4fdeb (patch)
tree7c17e3ac19c1dd36e21f5da6c279acba28ab68a7 /poll.rb
parent8866d54e8cbf613f209758eecfdd89c430c8dd89 (diff)
colored input fields
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/poll.rb b/poll.rb
index 8aab599..b620a91 100644
--- a/poll.rb
+++ b/poll.rb
@@ -141,10 +141,10 @@ class Poll
ret += "</td>\n"
unless config
@head.each_column{|columnid,columntitle|
- ret += "<td class='checkboxes'><table>"
+ ret += "<td class='checkboxes'><table class='checkboxes'>"
[[YES, YESVAL],[NO, NOVAL],[MAYBE, MAYBEVAL]].each{|valhuman, valbinary|
- ret += "<tr>
- <td>
+ ret += "<tr class='input-#{valbinary}'>
+ <td class='input-#{valbinary}'>
<input type='radio'
value='#{valbinary}'
id=\"add_participant_checked_#{CGI.escapeHTML(columnid.to_s.gsub(" ","_").gsub("+","_"))}_#{valbinary}\"
@@ -158,9 +158,9 @@ class Poll
}
ret += "</table></td>"
}
- ret += "<td class='checkboxes'>"
+ ret += "<td class='date'>"
else
- ret += "<td class='checkboxes' colspan='#{@head.col_size + 1}'>"
+ ret += "<td class='date' colspan='#{@head.col_size + 1}'>"
end
if @data.include?(edituser)
ret += "<input type='submit' value='edit user' />"