X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fquotation.html;h=ae9c4aa8cc86bbd94751d7ae3ec43b9d2f334d78;hb=b6538b4641f900da4892d8c44292befb71188822;hp=461b5dfb6e2d73d4fb4440266eadc4fca376b714;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/httemplate/view/quotation.html b/httemplate/view/quotation.html index 461b5dfb6..ae9c4aa8c 100755 --- a/httemplate/view/quotation.html +++ b/httemplate/view/quotation.html @@ -1,5 +1,12 @@ <& /elements/header.html, mt('Quotation View'), $menubar &> + + %#XXX link to order... <%doc> @@ -38,14 +45,12 @@ XXX resending quotations % } % if ( $conf->exists('quotation_html') ) { - <% join('', $quotation->print_html() ) %> + <% join('', $quotation->print_html( preref_callback=>$preref_callback )) %> % } else { % die "quotation_html config missing"; % } % #plaintext quotations?
<% join('', $quotation->print_text() ) %>
- - <& /elements/footer.html &> <%init> @@ -89,5 +94,17 @@ my $link = "quotationnum=$quotationnum"; #$link .= ';template='. uri_escape($template) if $template; #$link .= ';notice_name='. $notice_name if $notice_name; +my $preref_callback = sub { + areyousure_link("${p}misc/delete-quotation_pkg.html?". shift->quotationpkgnum, + emt('Are you sure you want to remove this package from the quotation?'), + emt('Remove this package'), #tooltip + qq(), #link + ); +}; + +sub areyousure_link { + my ($url,$msg,$title,$label) = (shift,shift,shift,shift); + ''.$label.''; +}