diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-09-12 04:28:25 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-09-12 04:28:25 -0700 |
commit | d046cb57be3c1a74362d15e90486239cc8a5f4d7 (patch) | |
tree | 040eb0cb25fbaab97cf988bf6a3a7473bf8bc3c2 /httemplate/edit/elements/edit.html | |
parent | cc401559d97ade5a8a87afdb741195626bbdd0c4 (diff) |
multiple payment options, RT#23741
Diffstat (limited to 'httemplate/edit/elements/edit.html')
-rw-r--r-- | httemplate/edit/elements/edit.html | 21 |
1 files changed, 14 insertions, 7 deletions
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: <INPUT TYPE="hidden" NAME="svcdb" VALUE="<% $table %>"> <INPUT TYPE="hidden" NAME="<% $pkey %>" VALUE="<% $clone ? '' : $object->$pkey() %>"> - <FONT SIZE="+1"><B> - <% ( $opt{labels} && exists $opt{labels}->{$pkey} ) - ? $opt{labels}->{$pkey} - : $pkey - %> - </B></FONT> - #<% ( !$clone && $object->$pkey() ) || "(NEW)" %> +% unless ( $opt{'no_pkey_display'} ) { + + <FONT SIZE="+1"><B> + <% ( $opt{labels} && exists $opt{labels}->{$pkey} ) + ? $opt{labels}->{$pkey} + : $pkey + %> + </B></FONT> + #<% ( !$clone && $object->$pkey() ) || "(NEW)" %> + +% } % } |