From 8468ce6abd28b145bfde14a210a166cca46115dc Mon Sep 17 00:00:00 2001 From: levinse Date: Tue, 7 Dec 2010 20:38:52 +0000 Subject: added prospect support to qualifications, RT7111 --- httemplate/view/prospect_main.html | 16 ++++++++++++++++ httemplate/view/qual.cgi | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'httemplate/view') diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html index 9517e3920..f4b2f58ee 100644 --- a/httemplate/view/prospect_main.html +++ b/httemplate/view/prospect_main.html @@ -56,6 +56,22 @@
+% if ( $curuser->access_right('Qualify service') ) { +<% include( '/elements/popup_link-prospect_main.html', + 'action' => $p. 'misc/qual.html', + 'label' => 'New Qualification', + 'actionlabel' => 'New Qualification', + 'color' => '#333399', + 'prospect_main' => $prospect_main, + 'closetext' => 'Close', + 'width' => 763, + 'height' => 436, + ) +%> + | View Qualifications +

+% } + <% ntable("#cccccc") %> diff --git a/httemplate/view/qual.cgi b/httemplate/view/qual.cgi index ebdc5cf12..c440baeaf 100644 --- a/httemplate/view/qual.cgi +++ b/httemplate/view/qual.cgi @@ -4,10 +4,15 @@ <% include( '/elements/small_custview.html', $cust_or_prospect->custnum, '', 1, "${p}view/cust_main.cgi") %> -
+% } elsif ( $cust_or_prospect->get('prospectnum') ) { +% my $prospectnum = $cust_or_prospect->get('prospectnum'); +% my $link = "${p}view/prospect_main.html?$prospectnum"; + Prospect #<%$prospectnum%> % } +

+ Qualification #<% $qual->qualnum %> <% ntable("#cccccc", 2) %> <% include('elements/tr.html', label => 'Status', value => $qual->status_long ) %> -- cgit v1.2.1