]> git.plutz.net Git - confetti/blobdiff - templates/edit_attendee.sh
stubs for action mechanics
[confetti] / templates / edit_attendee.sh
index f2acb9f6a7f0b84678545bb18a9a7494bd01feb6..fe33c18e33ee2d26f414600a24bf9021f4880e2a 100755 (executable)
@@ -11,12 +11,15 @@ edit_card_item() {
       ;|
     *)
       echo "<input class=\"VALUE\" name=\"$key\" value=\"$value\" /></item>"
+      echo "<button name=\"deletefield\" value=\"$key $value\">$(l10n edit_deletefield)</button>"
       ;;
   esac
 }
 
 edit_attendee() {
   cardfile="$1"
+  tempfile="temp/$_GET[\"edit\"].vcf"
+  [ -x "$tempfile" ] && cardfile="$tempfile"
   unset key
   vcf_parse "$cardfile" |while read -r line; do
     declare -A tag