X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Felements%2Fedit.html;h=6c965326b5acd6077a60f2d834dd6aa66eaa07fa;hp=051788cf75c81bc517198f547e08780eb9e36034;hb=fe4515eb37d76849dd08c62782d86bc7ba311dcd;hpb=81ae0992cf8506c6a77485548ebde25eb946a9a9
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 051788cf7..6c965326b 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -116,6 +116,9 @@ Example:
# display of primary key, no submit button, no html_foot, no footer)
'embed' => $object, #need to pass the object
+ #don't show the primary key label and value
+ 'no_pkey_display' => 1,
+
###
# HTML callbacks
###
@@ -236,13 +239,17 @@ Example:
-
- <% ( $opt{labels} && exists $opt{labels}->{$pkey} )
- ? $opt{labels}->{$pkey}
- : $pkey
- %>
-
- #<% ( !$clone && $object->$pkey() ) || "(NEW)" %>
+% unless ( $opt{'no_pkey_display'} ) {
+
+
+ <% ( $opt{labels} && exists $opt{labels}->{$pkey} )
+ ? $opt{labels}->{$pkey}
+ : $pkey
+ %>
+
+ #<% ( !$clone && $object->$pkey() ) || "(NEW)" %>
+
+% }
% }