diff options
Diffstat (limited to '')
-rw-r--r-- | default.css | 14 | ||||
-rw-r--r-- | dudle.rb | 12 | ||||
-rw-r--r-- | poll.rb | 6 | ||||
-rw-r--r-- | timepollhead.rb | 8 |
4 files changed, 27 insertions, 13 deletions
diff --git a/default.css b/default.css index 5522446..5f00cd9 100644 --- a/default.css +++ b/default.css @@ -33,10 +33,10 @@ a:hover, a:active { } td.ayes, td.bmaybe, td.cno { cursor:default;} -td.ayes, td.input-ayes, input.chosen { background-color:#9C6} +td.ayes, tr.input-ayes td, input.chosen { background-color:#9C6} input.chosen:hover { background-color: #8B5 } -td.cno, td.input-cno { background-color:#F96 } -td.bmaybe, td.input-bmaybe { background-color:#FF6} +td.cno, tr.input-cno td { background-color:#F96 } +td.bmaybe, tr.input-bmaybe td { background-color:#FF6} td.undecided { background-color:#DDD } td.checkboxes { @@ -48,6 +48,7 @@ td.checkboxes { table.checkboxes{ width: 100%; border-collapse: collapse; + border:none; } label { cursor: pointer; } @@ -213,6 +214,7 @@ html { padding: 2em; color: #000; border: solid 1px #000; + border-bottom: none; top: 0px; margin-top: 0px; } @@ -323,6 +325,10 @@ form#ac_participant, form#ac, form#ac_admin{ } div#languageChooser{ - margin-top: 2em; + background: #fff; + padding: 2em; + color: #000; + border: solid 1px #000; + border-top: none; text-align: center; } @@ -163,6 +163,8 @@ class Dudle <div id='header1'></div> <div id='header2'></div> <div id='header3'></div> +<div id='header4'></div> +<div id='header5'></div> <div id='main'> #{tabs(@tab)} <div id='content'> @@ -217,6 +219,7 @@ READY @html << wizzard_nav if @is_config @html.add_cookie("lang",@cgi["lang"],"/",Time.now + (1*60*60*24*365)) if @cgi.include?("lang") + @html << "</div>" # content @html << "<div id='languageChooser'>" lang = [ ["en", "English"], @@ -235,9 +238,14 @@ READY end @html << "</div>" # languageChooser - @html << "</div>" # content @html << "</div>" # main - + @html << <<FOOT +<div id='footer1'></div> +<div id='footer2'></div> +<div id='footer3'></div> +<div id='footer4'></div> +<div id='footer5'></div> +FOOT @extensions.each{|e| if File.exists?("#{@basedir}/extensions/#{e}/main.rb") require "#{@basedir}/extensions/#{e}/main" @@ -100,7 +100,7 @@ class Poll ret end def to_html(showparticipation = true) - ret = "<table border='1'>\n" + ret = "<table class='polltable'>\n" sortcolumns = $cgi.include?("sort") ? $cgi.params["sort"] : ["timestamp"] ret += @head.to_html(sortcolumns) @@ -275,14 +275,14 @@ END [[YES, YESVAL],[NO, NOVAL],[MAYBE, MAYBEVAL]].each{|valhuman, valbinary| ret += <<TR <tr class='input-#{valbinary}'> - <td class='input-#{valbinary}'> + <td class='input-radio'> <input type='radio' value='#{valbinary}' id=\"add_participant_checked_#{column.to_htmlID}_#{valbinary}\" name=\"add_participant_checked_#{CGI.escapeHTML(column.to_s)}\" title=\"#{CGI.escapeHTML(column.to_s)}\" #{checked[column] == valbinary ? "checked='checked'":""}/> </td> - <td class='input-#{valbinary}'> + <td class='input-label'> <label for=\"add_participant_checked_#{column.to_htmlID}_#{valbinary}\">#{valhuman}</label> </td> </tr> diff --git a/timepollhead.rb b/timepollhead.rb index 79e4aa0..ffe2457 100644 --- a/timepollhead.rb +++ b/timepollhead.rb @@ -203,7 +203,7 @@ END end return <<END <tr> - <td style='padding:0px' colspan='2'> + <td class='navigation' colspan='2'> <form method='post' action=''> <div> <input class='navigation' type='submit' value='#{str}' /> @@ -282,7 +282,7 @@ END ret += "</tr><tr>\n" ((@startdate.wday+7-1)%7).times{ - ret += "<td></td>" + ret += "<td class='invisible'></td>" } d = @startdate while true do @@ -409,10 +409,10 @@ END } ret += timenavi(LATER,revision) - ret += "<tr><td colspan='2'></td>" + ret += "<tr><td colspan='2' class='invisible'></td>" days.each{|d| ret += <<END - <td> + <td class='addColumnManual'> <form method='post' action='' accept-charset='utf-8'> <div> <input type='hidden' name='new_columnname' value='#{d.strftime("%Y-%m-%d")}' /> |