]> git.plutz.net Git - confetti/blobdiff - templates/edit_course.sh
switch box-model
[confetti] / templates / edit_course.sh
index ea5e88d0b957857b022b3366e79250bcad4295a4..67e051173189afd5856258a9811ac36c27fb2911 100755 (executable)
@@ -1,6 +1,22 @@
+# Copyright 2014 Paul Hänsch
+#
+# This file is part of Confetti.
+# 
+# Confetti is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# Confetti is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
 SUP_FIELDS=(SUMMARY COMMENT)
-[ -z "$values[UID]" ] && values[UID]="$(dbus-uuidgen)"
+[ -z "$values[UID]" ] && values[UID]="$(uuidgenerator)"
 
 dtstart="$values[DTSTART]"
 [ -z "$dtstart" ] && dtstart=$(date +%Y%m%dT%H%M%S)
@@ -42,7 +58,7 @@ else
 fi
 
 echo '<div id="'${id}'" class="course">'
-echo '<form action="/?action=update_course" method="POST">'
+echo '<form action="?action=update_course" method="POST">'
 echo '<input type="hidden" name="course" value="'${id}'"/>'
 echo '  <div class="section basic">'
 echo '    <span class="sectitle">'$(l10n SUMMARY)'</span>'