diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-19 16:31:00 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-19 16:31:00 +0100 |
commit | debd09d74509b18578eb72f447e797c1dac4fdeb (patch) | |
tree | 7c17e3ac19c1dd36e21f5da6c279acba28ab68a7 /poll.rb | |
parent | 8866d54e8cbf613f209758eecfdd89c430c8dd89 (diff) |
colored input fields
Diffstat (limited to 'poll.rb')
-rw-r--r-- | poll.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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' />" |