aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <Benjamin.Kellermann@gmx.de>2008-10-24 21:23:12 +0200
committerunknown <Benjamin.Kellermann@gmx.de>2008-10-24 21:23:12 +0200
commit8077582b375d87995764c23b7699a79dfe398e52 (patch)
treebe430a9fd7b96a7fc878587318a59acac3a85190
parent504e322e552d07fdd7a56f940f598679b3d9605c (diff)
added print.css
-rw-r--r--.bzrignore1
-rwxr-xr-xindex.cgi23
-rw-r--r--print.css54
3 files changed, 65 insertions, 13 deletions
diff --git a/.bzrignore b/.bzrignore
index a7eb834..f996a6f 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -1,2 +1 @@
-*.yaml
intern
diff --git a/index.cgi b/index.cgi
index c995194..c8f375d 100755
--- a/index.cgi
+++ b/index.cgi
@@ -20,14 +20,6 @@ class Poll
ret += "<th title='#{columndescription}'>#{columntitle}</th>\n"
}
ret += "<th>Last Edit</th>\n"
-# ret += "<th>"
-# ret += "<form method='post' action=''>\n"
-# ret += "<div>"
-# ret += "<input size='16' type='text' name='add_participant' />\n"
-# ret += "<input type='submit' value='add/edit' />\n"
-# ret += "</div>"
-# ret += "</form>\n"
-# ret += "</th>\n"
ret += "</tr>\n"
ret
end
@@ -76,7 +68,7 @@ END
ret += "</tr>\n"
}
- ret += "<tr>\n"
+ ret += "<tr id='add_participant'>\n"
ret += "<td class='name'><input size='16' type='text' name='add_participant' /></td>\n"
@head.sort.each{|columntitle,columndescription|
ret += "<td class='checkboxes'>
@@ -145,7 +137,7 @@ END
ret += "<div>"
ret += "<fieldset><legend>#{name} said on #{time.strftime("%d.%m, %H:%M")} "
ret += "<input type='hidden' name='delete_comment' value='#{i}' />"
- ret += "<input type='submit' value='delete' style='position: absolute; margin-left: 20px;' />"
+ ret += "<input class='delete_comment_button' type='submit' value='delete' style='position: absolute; margin-left: 20px;' />"
ret += "</legend>"
ret += comment
ret += "</fieldset>"
@@ -357,10 +349,15 @@ if File.exist?("data.yaml")
<meta http-equiv="Content-Type" content="#{CONTENTTYPE}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>dudle - #{table.name}</title>
- <link rel="stylesheet" type="text/css" href="../dudle.css" />
+ <link rel="stylesheet" type="text/css" href="../dudle.css" title="default"/>
+ <link rel="stylesheet" type="text/css" href="../print.css" title="print" media="print" />
+ <link rel="stylesheet" type="text/css" href="../print.css" title="print" />
+
+
+
</head>
<body>
-<div>
+<div id='backlink'>
<a href='..' style='text-decoration:none'>#{BACK}</a>
</div>
<h1>#{table.name}</h1>
@@ -388,9 +385,11 @@ HEAD
puts table.to_html
+ puts "<div id='hint'>"
puts "<fieldset><legend>Hint</legend>"
puts "To change a line, add a new person with the same name!"
puts "</fieldset>"
+ puts "</div>"
MAXREV=`bzr revno`.to_i
REVISION=MAXREV unless defined?(REVISION)
diff --git a/print.css b/print.css
new file mode 100644
index 0000000..6f9cbb7
--- /dev/null
+++ b/print.css
@@ -0,0 +1,54 @@
+td.yes, input.choosen { background-color:#0F0; }
+td.no { background-color:#F00; }
+td.maybe { background-color:#FF0; }
+td.undecided { background-color:#DDD;color:#666 }
+td.name {
+ text-align:right;
+}
+input.navigation, input.disabled, input.choosen, input.notchoosen {
+ border-width: 1px;
+ border-style: solid;
+ border-color: black;
+ padding: 0px;
+ cursor: pointer;
+ width: 3.5em;
+ height: 3.5ex;
+}
+input.navigation {
+ color: white;
+ background-color: black;
+}
+input.disabled { background-color:#DDD;color:#BBB}
+td.calendarday{
+ border: 1px;
+ padding: 0px;
+ margin: 0px;
+}
+table {
+ border: none;
+}
+td {
+ vertical-align:middle;
+ text-align:center;
+ border-width: 0px;
+ padding: 1px 3px;
+}
+td.sum, td.date, td.name, td.checkboxes {
+ background-color:Silver;
+}
+div#add_comment,div#add_remove_column, div#invite_delete, div#history, div#hint, div#backlink, input.delete_comment_button, tr#add_participant{
+ visibility: collapse;
+}
+th {
+ padding: 1px 3px;
+ color: white;
+ background-color:black;
+ font-weight: normal;
+}
+td.date {
+ color: Gray;
+ text-align: left;
+}
+h1 {
+ text-align: center;
+}