Title different when use for adding new records.
authorMike Taylor <mike@indexdata.com>
Tue, 14 Nov 2006 14:55:28 +0000 (14:55 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 14 Nov 2006 14:55:28 +0000 (14:55 +0000)
web/htdocs/edit.html

index 7f9ebc6..8af5c84 100644 (file)
@@ -1,3 +1,7 @@
-%# $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.2 2006-11-14 14:55:28 mike Exp $
+<%args>
+$id => undef
+</%args>
+<& /chrome/layout.mc, %ARGS,
+    title => (defined $id ? "Edit" : "New") . " target record",
     component => "/details/edit.mc" &>