Clarify title generation.
[irspy-moved-to-github.git] / web / htdocs / edit.html
index 7f9ebc6..94c2f25 100644 (file)
@@ -1,3 +1,9 @@
-%# $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.4 2006-11-29 14:57:31 mike Exp $
+<%args>
+$id => undef
+$copy => undef
+</%args>
+<& /chrome/layout.mc, %ARGS,
+    title => (!defined $id ? "New" : $copy ? "Copy" : "Edit") .
+       " target record",
     component => "/details/edit.mc" &>