summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorlevinse <levinse>2010-12-07 20:38:52 +0000
committerlevinse <levinse>2010-12-07 20:38:52 +0000
commit8468ce6abd28b145bfde14a210a166cca46115dc (patch)
tree3c7a85b45d1a8fb655dd4abf2ed22570c74ece93 /httemplate/view
parentc58774a70c3326ad2ba5a7a38b174dfbd76a9f78 (diff)
added prospect support to qualifications, RT7111
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/prospect_main.html16
-rw-r--r--httemplate/view/qual.cgi7
2 files changed, 22 insertions, 1 deletions
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 @@
<BR>
+% if ( $curuser->access_right('Qualify service') ) {
+<% include( '/elements/popup_link-prospect_main.html',
+ 'action' => $p. 'misc/qual.html',
+ 'label' => 'New&nbsp;Qualification',
+ 'actionlabel' => 'New Qualification',
+ 'color' => '#333399',
+ 'prospect_main' => $prospect_main,
+ 'closetext' => 'Close',
+ 'width' => 763,
+ 'height' => 436,
+ )
+%>
+ | <A HREF="<%$p%>search/qual.cgi?prospectnum=<% $prospect_main->prospectnum %>">View Qualifications</A>
+ <BR><BR>
+% }
+
<% ntable("#cccccc") %>
<TR>
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") %>
- <BR>
+% } elsif ( $cust_or_prospect->get('prospectnum') ) {
+% my $prospectnum = $cust_or_prospect->get('prospectnum');
+% my $link = "${p}view/prospect_main.html?$prospectnum";
+ <A HREF="<%$link%>">Prospect #<%$prospectnum%></A>
% }
+<BR><BR>
+
<B>Qualification #<% $qual->qualnum %></B>
<% ntable("#cccccc", 2) %>
<% include('elements/tr.html', label => 'Status', value => $qual->status_long ) %>