Clarify title generation.
[irspy-moved-to-github.git] / web / htdocs / edit.html
index 8af5c84..94c2f25 100644 (file)
@@ -1,7 +1,9 @@
-%# $Id: edit.html,v 1.2 2006-11-14 14:55:28 mike Exp $
+%# $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 ? "Edit" : "New") . " target record",
+    title => (!defined $id ? "New" : $copy ? "Copy" : "Edit") .
+       " target record",
     component => "/details/edit.mc" &>