diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-27 00:21:58 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-27 00:21:58 +0100 |
commit | 17e73f44ca8b7a48a1c863d451464ac0fb4265c2 (patch) | |
tree | e1e753096f321b3e5eb2e6c3d38781894aea2ce2 | |
parent | 176cde084e173433713f8eb25c3ef806e0370012 (diff) |
give the elements more names
-rw-r--r-- | dudle.rb | 7 | ||||
-rw-r--r-- | poll.rb | 2 |
2 files changed, 6 insertions, 3 deletions
@@ -36,8 +36,11 @@ require "charset" class Dudle attr_reader :html, :table, :urlsuffix, :css, :title, :tab + def is_poll? + @is_poll + end def tabs(active_tab) - ret = "<div id='tabs'><ul>" + ret = "<div id='tabs'><ul id='tablist'>" tabs = [] tabs << [_("Home"),@basedir] if @is_poll @@ -145,7 +148,7 @@ class Dudle <div id='main'> #{tabs(@tab)} <div id='content'> - <h1>#{@title}</h1> + <h1 id='polltitle'>#{@title}</h1> HEAD @@ -165,7 +165,7 @@ INVITE edituser = $cgi.cookies["username"][0] unless @data.include?($cgi.cookies["username"][0]) @head.columns.each{|k| checked[k] = NOVAL} end - ret = "<tr><td colspan='#{@head.col_size + 2}' class='invisible' /></tr>\n" + ret = "<tr id='separator'><td colspan='#{@head.col_size + 2}' class='invisible' /></tr>\n" ret += "<tr id='add_participant'>\n" ret += "<td class='name'> <input type='hidden' name='olduser' value=\"#{edituser}\" /> |