#{extends 'main.html' /} #{set title:'Account Details' /} Search

Account Display

Name ${ account.getField("Name") }
City ${ account.getField("BillingCity") }
State ${ account.getField("BillingState") }
Phone ${ account.getField("Phone") }
Website ${ account.getField("Website") }

Create a new Opportunity or edit this Account

%{ if (opportunities.length > 0) { }%

Opportunities for ${ account.getField("Name") }

#{list items:opportunities, as:'o' } #{/list}
Name Amount Stage Probability Close Date Order
${ o.getField("Name") } $${ o.getField("Amount") } ${ o.getField("StageName") } ${ o.getField("Probability") } ${ o.getField("CloseDate") } ${ o.getField("OrderNumber__c") }
%{ } else { }%

No Opportunities found for ${ account.getField("Name") } %{ } }%