From d046cb57be3c1a74362d15e90486239cc8a5f4d7 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 12 Sep 2013 04:28:25 -0700 Subject: multiple payment options, RT#23741 --- httemplate/edit/elements/edit.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'httemplate/edit/elements/edit.html') diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 3270f0443..060281115 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)" %> + +% } % } -- cgit v1.2.1