diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-24 22:21:04 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-24 22:21:04 +0100 |
commit | 308c067fb65cc22422c8feae1f2e8691255e3f96 (patch) | |
tree | d4303b0c96c5679fefe8bfc9a5420644d95be4bb /invite_participants.rb | |
parent | a7466acd2a8720e0dbb87972225c8937d44addca (diff) |
invite implemented
Diffstat (limited to 'invite_participants.rb')
-rwxr-xr-x | invite_participants.rb | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/invite_participants.rb b/invite_participants.rb index 15c7dd1..6c9204a 100755 --- a/invite_participants.rb +++ b/invite_participants.rb @@ -33,26 +33,13 @@ require "html" load "config.rb" require "poll" Dir.chdir(olddir) -# BUGFIX for Time.parse, which handles the zone indeterministically -class << Time - alias_method :old_parse, :parse - def Time.parse(date, now=self.now) - Time.old_parse("2009-10-25 00:30") - Time.old_parse(date) - end -end table = YAML::load_file("data.yaml") -# TODO: move to own tab -#if $cgi.include?("add_participant") -# if $cgi.include?("delete_participant") -# table.delete($cgi["olduser"]) -# else -# table.add_participant($cgi["olduser"],$cgi["add_participant"],{}) -# end -#end +if $cgi.include?("add_participant") + table.add_participant("",$cgi["add_participant"],{}) +end $html = HTML.new("dudle - #{table.name} - Invite Participants") $html.header["Cache-Control"] = "no-cache" @@ -65,8 +52,10 @@ $html << Dudle::tabs("Invite Participants") $html << <<TABLE <div id='main'> <h1>#{table.name}</h1> - <h2>Invite or Delete Participants</h2> - #{table.to_html} + <h2>Invite Participants</h2> + <form method='post' action=''> + #{table.to_html("","invite")} + </form> TABLE $html << "</div></body>" |