X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fprospect_main.html;h=504a5a8ec1caa9612a87ce298fd7f78158c8d930;hb=ea749c5e875371d98bdcf173e19a2d57fa46481e;hp=a1f14a3745542353ff83d10386c366fa1b1ebf2a;hpb=aeb90ade381fc3d5477db0334048c2af623fccfe;p=freeside.git
diff --git a/httemplate/view/prospect_main.html b/httemplate/view/prospect_main.html
index a1f14a374..504a5a8ec 100644
--- a/httemplate/view/prospect_main.html
+++ b/httemplate/view/prospect_main.html
@@ -1,40 +1,22 @@
-<& /elements/header.html, 'Prospect View: '. $prospect_main->company &>
+<& /elements/header.html, $title &>
% if ( $curuser->access_right('Edit prospect') ) {
Edit this prospect
% }
-<% ntable("#cccccc",2) %>
-
-
- Prospect # |
- <% $prospectnum %>
-% if ( $prospect_main->disabled ) {
- (DISABLED)
-% }
- |
-
-
-%unless ( scalar(@agentnums) == 1
-% && !$curuser->access_right('View customers of all agents') ) {
-% my $agent = qsearchs('agent',{ 'agentnum' => $prospect_main->agentnum } );
-
- Agent |
- <% $agent->agentnum %>: <% $agent->agent |h %> |
-
-%}
+
%unless ( ! $prospect_main->refnum ) { # || scalar(@part_referral) == 1 ) {
% my $part_referral = qsearchs('part_referral',{ 'refnum' => $prospect_main->refnum } );
- Advertising source |
+ Advertising source
| <% $part_referral->referral |h %> |
%}
% if ( $prospect_main->company ) {
- Company |
+ Company
| <% $prospect_main->company |h %> |
% }
@@ -42,8 +24,21 @@
% foreach my $prospect_contact ( $prospect_main->prospect_contact ) {
% my $contact = $prospect_contact->contact;
- <% $prospect_contact->contact_classname %> Contact |
- <% $contact->line %> |
+ <% $prospect_contact->contact_classname %> Contact |
+
+ <% $contact->line %>
+
+% for my $row ( $contact->contact_email ) {
+ E-Mail: | <% $row->emailaddress %> |
+% }
+% for my $row ( $contact->contact_phone ) {
+ <% $row->phone_type->typename %>: | <% $row->phonenum_pretty %> |
+% }
+% if ( $prospect_contact->comment ) {
+ Comment: | <% $prospect_contact->comment %> |
+% }
+
+ |
%}
@@ -52,7 +47,7 @@
% #but only one, for now
% foreach my $cust_location (@cust_location) {
- Address |
+ Address
|
<% $cust_location->location_label(
'join_string' => ' ',
@@ -69,6 +64,14 @@
&>
% }
% }
+% if ( my $tax_status = $prospect_main->tax_status ) {
+ |
+ Tax status
+ |
+ <% $tax_status->taxstatus %>: <% $tax_status->description %>
+ |
+
+% }
@@ -79,7 +82,7 @@
% if ( $curuser->access_right('Qualify service') ) {
<% include( '/elements/popup_link-prospect_main.html',
'action' => $p. 'misc/qual.html',
- 'label' => 'New Qualification',
+ 'label' => 'New Qualification',
'actionlabel' => 'New Qualification',
'color' => '#333399',
'prospect_main' => $prospect_main,
@@ -92,15 +95,7 @@
% }
-
+%# XXX display prospect tickets
<%init>
@@ -126,6 +121,13 @@ my $prospect_main = qsearchs( {
});
die "Prospect not found!" unless $prospect_main;
+my $title = mt("Prospect"). ': '. $prospect_main->name;
+$title .= ' ('.mt('DISABLED').')'
+ if $prospect_main->disabled;
+
my @agentnums = $curuser->agentnums;
+if (scalar(@agentnums) > 1 ) {
+ $title = encode_entities($prospect_main->agent->agent). " $title";
+}
%init>