]> git.plutz.net Git - confetti/commitdiff
relative URI syntax in form actions and link references
authorpaul <paul@plutz.net>
Wed, 18 Mar 2015 16:26:05 +0000 (16:26 +0000)
committerpaul <paul@plutz.net>
Wed, 18 Mar 2015 16:26:05 +0000 (16:26 +0000)
svn path=/trunk/; revision=56

templates/attendees.html.sh
templates/courses.html.sh
templates/edit_attendee.sh
templates/edit_course.sh
templates/email.html.sh
templates/view_attendee.sh
templates/view_course.sh

index 684c2e9a74f454f6d73649819b0c7fe18bd61281..7613a0b3c4906c178035afc893d63d4e8e574ac2 100644 (file)
@@ -29,7 +29,7 @@ edit="$_GET[\"edit\"]"
 cat <<EOF
 <div class="filter">
   <span class="label">$(l10n filter_label)</span>
-  <form class="search" action="/?action=filter_attendee" method="POST">
+  <form class="search" action="?action=filter_attendee" method="POST">
     <input type="hidden" name="page" value="attendees"/>
     <input type="text" name="filter" value="$_GET["filter"]" placeholder="$(l10n filter_placeholder)"/>
     <br />
index 986397f69288e6654968e66f654289ebb12ac444..698fe2c37e65dbe9823b067b23826d509abacfbc 100644 (file)
@@ -23,7 +23,7 @@ check_order(){
 
 cat <<EOF
 <div class="sort">
-  <form class="search" action="/" method="GET">
+  <form class="search" action="?" method="GET">
     <input type="hidden" name="page" value="courses"/>
     <input type="hidden" name="edit" value="$edit"/>
     <span class="label">$(l10n sort_order):</span>
index d3758e1df88bc2e9adf61aab32f4f7eb3bfe7801..fd0e09c1ee5faed2927d6cd77a48c70e16785f38 100755 (executable)
@@ -33,7 +33,7 @@ SUP_FIELDS=(N NICKNAME GENDER BDAY X-ZACK-JOINDATE X-ZACK-LEAVEDATE EMAIL TEL IM
 [ -z "$values[UID]" ] && values[UID]="$(dbus-uuidgen)"
 
 echo '<div id="'${id}'" class="card">'
-echo '<form action="/?action=update_attendee" method="POST">'
+echo '<form action="?action=update_attendee" method="POST">'
 echo '<input type="hidden" name="card" value="'${id}'"/>'
 echo '  <div class="section basic">'
 echo '    <span class="sectitle">'$(l10n N)'</span>'
index 3fa544e8b76e75349613b5c6b9118418837ec9f4..8aa9d5624f3205ce634b63ffa3bc96f4a06c3b79 100755 (executable)
@@ -58,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>'
index 91d3676c493d7562cfc3c2bbc2b3ddb540075bbe..6061a8aee81ef08c25ae3d34825a96f4e0eb58ac 100644 (file)
@@ -18,7 +18,7 @@
 cat <<EOF
 <div class="select">
   <span class="label">$(l10n filter_label)</span>
-  <form class="search" action="/?action=select_mailing" method="POST">
+  <form class="search" action="?action=select_mailing" method="POST">
 
     <div class="selectlist">
       <span class="label">$(l10n select_courses):</span>
index df3649e0653a966bdd2d4e65fc2d41117c649bfe..4d14e750cf12da1d81f5c145eb42dae8df61b402 100755 (executable)
@@ -85,7 +85,7 @@ echo '  <div class="section">'
 echo '    <span class="sectitle">'$(l10n course_attendance)'</span>'
 sed -rn 's:(.*)\t'$id'$:\1:p' "$_DATA/mappings/attendance" |while read each; do
   cname="$(sed -rn 's:^SUMMARY\:(.*)$:\1:p' "$_DATA/ical/$each")"
-  echo '    <a class="item attendance" href="/?page=courses#'$each'">'$cname'</a>'
+  echo '    <a class="item attendance" href="?page=courses#'$each'">'$cname'</a>'
 done
 echo '  </div>'
 echo ''
index 25e1cf403d09648bca4e857d6167bb4e3fe4de65..9ebe377880e614cd419ff13cd8930174f2b8cf6a 100755 (executable)
@@ -58,7 +58,7 @@ fi
 coursemail=""
 
 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">'$values[SUMMARY]'</span>'
@@ -87,7 +87,7 @@ echo '  </div>'
 
 echo '  <div class="section attendance">'
 echo '    <span class="sectitle">'$(l10n course_attendance)'</span>'
-list_attendance "$id" |sort -k 2 |sed -r 's:^([^ ]+) (.*)$:<a class="attendance" href="/?page=attendees#\1">\2</a>:'
+list_attendance "$id" |sort -k 2 |sed -r 's:^([^ ]+) (.*)$:<a class="attendance" href="?page=attendees#\1">\2</a>:'
 echo '  </div>'
 
 echo '  <div class="section control">'