aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-07 09:20:47 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-07 09:20:47 +0200
commit16d58fddddfa7942d6355dd27fa87a77ff53f97c (patch)
tree371d976fa0cea05f254c5ade5bb0406cc2439d3f /poll.rb
parentd67da9fd0f5fd21e0438d6676d7353342a517bea (diff)
new feature: users can delete their row
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/poll.rb b/poll.rb
index b54249e..59ba5b5 100644
--- a/poll.rb
+++ b/poll.rb
@@ -136,8 +136,9 @@ class Poll
type='text'
name='add_participant'
value=\"#{participant}\"
- title='To change a line, add a new person with the same name!' />
- </td>\n"
+ title='To change a line, add a new person with the same name!' />"
+ ret += "<br /><input type='submit' name='delete_participant' value='delete user' />" if $edituser
+ ret += "</td>\n"
@head.sort.each{|columntitle,columndescription|
ret += "<td class='checkboxes'><table>"
[[YES, YESVAL],[NO, NOVAL],[MAYBE, MAYBEVAL]].each{|valhuman, valbinary|