Add A Target item explicitly sets new=1
[irspy-moved-to-github.git] / web / htdocs / edit.html
index 7f9ebc6..05f7aa6 100644 (file)
@@ -1,3 +1,8 @@
-%# $Id: edit.html,v 1.1 2006-10-20 16:57:40 mike Exp $
-<& /chrome/layout.mc, %ARGS, title => "Edit target record",
+%# $Id: edit.html,v 1.3 2006-11-15 17:43:50 mike Exp $
+<%args>
+$id => undef
+</%args>
+<& /chrome/layout.mc, %ARGS,
+    title => ($r->param("copy") ? "Copy" : defined $id ? "Edit" : "New") .
+       " target record",
     component => "/details/edit.mc" &>