<%= _.isUndefined(i18n['Created on'])?'Created on':i18n['Created on'] %>:
<%= (moment(leadModel.get('created_at'), 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') === 'Invalid date') ? '': moment(leadModel.get('created_at'), 'YYYY-MM-DD HH:mm:ss').format('DD MMM YYYY') %>
<%= _.isUndefined(i18n['Originated from'])?'Originated from':i18n['Originated from'] %>:
<%= _.isUndefined(i18n['Last action'])?'Last action':i18n['Last action'] %>
<%= (moment(activityResult, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') === 'Invalid date') ? '': moment(activityResult, 'YYYY-MM-DD HH:mm:ss').format('DD MMM YYYY') %>
<%= _.isUndefined(i18n['Next action'])?'Next action':i18n['Next action'] %>
<%= _.isEmpty(leadModel.get('nextActionOn')) ? '': moment(leadModel.get('nextActionOn'), 'YYYY-MM-DD HH:mm:ss').format('DD MMM YYYY') %>
<% if(!_.isEmpty(leadModel.get('leadsOwners'))) {%> <%= _.isUndefined(i18n['Lead owner'])?'Lead owner':i18n['Lead owner'] %> <% }else{ %> <%= _.isUndefined(i18n['Lead owner'])?'Lead owner':i18n['Lead owner'] %> <%= _.isEmpty(leadModel.get('owner_name')) ? '': leadModel.get('owner_name') %> <% } %>
<% organizationSwitchClass = 'grid_6' %> <% if(!leadModel.get('organization_id')) {%> <% organizationSwitchClass = 'grid_6' %> <% } %> <% hideOrganizationSwitchBlockClass = '' %> <% if(!leadModel.get('organization_id')) {%> <% hideOrganizationSwitchBlockClass = 'hidden' %> <% } %> <% switchStatus = '' %> <% if (leadModel.get('use_organization_address') == '1') { %> <% switchStatus = 'checked' %> <% } %>
<% if (_.isEmpty(leadModel.get('user_id'))) { %> <% } else { %> <%= _.isEmpty(leadModel.get('lead_email')) ? '': leadModel.get('lead_email') %> <% } %>
<% if (!_.isEmpty(leadModel.get('socialServices'))) { %> <% } %>
type="text" data-lead-old-val="<%= _.isEmpty(leadModel.get('lead_address')) ? '': leadModel.get('lead_address') %>" data-lead-attr="lead_address" class="lead-detailed-view-param lead-address-detailed-view" value="<%= leadAddress %>" placeholder="<%= _.isUndefined(i18n['Address'])?'Address':i18n['Address'] %>" />
type="text" data-lead-old-val="<%= _.isEmpty(leadModel.get('lead_address1')) ? '': leadModel.get('lead_address1') %>" data-lead-attr="lead_address1" class="lead-detailed-view-param lead-address1-detailed-view" value="<%= leadAddress1 %>" placeholder="<%= _.isUndefined(i18n['Address2'])?'Address2':i18n['Address2'] %>" />
type="text" data-lead-old-val="<%= _.isEmpty(leadModel.get('lead_city')) ? '': leadModel.get('lead_city') %>" data-lead-attr="lead_city" class="lead-detailed-view-param lead-city-detailed-view" value="<%= leadCity %>" placeholder="<%= _.isUndefined(i18n['City'])?'City':i18n['City'] %>" />
type="text" data-lead-old-val="<%= _.isEmpty(leadModel.get('lead_zip')) ? '': leadModel.get('lead_zip') %>" data-lead-attr="lead_zip" class="lead-detailed-view-param lead-zip-detailed-view" value="<%= leadZip %>" placeholder="<%= _.isUndefined(i18n['Zip'])?'Zip':i18n['Zip'] %>" />
<% countryClass = 'grid_12' %> <% if(!_.isEmpty(leadModel.get('states'))) { %> <% countryClass = 'grid_6' %> <% } %><% if(_.isEmpty(leadModel.get('states'))) { %> <% var statesHidden = 'hidden' %> <% } else { %> <% var statesHidden = '' %> <% } %>
<%= _.isUndefined(i18n['View additional info'])?'View additional info':i18n['View additional info'] %>
<%= leadOpportunityStatNewCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(leadOpportunityStatNewAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<%= _.isUndefined(i18n['Open'])?'Open':i18n['Open'] %>
<%= leadOpportunityStatLostCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(leadOpportunityStatLostAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<%= _.isUndefined(i18n['Lost'])?'Lost':i18n['Lost'] %>
<%= leadOpportunityStatWonCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(leadOpportunityStatWonAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<%= _.isUndefined(i18n['Won'])?'Won':i18n['Won'] %>
<%= (!_.isUndefined(leadOpportunityRatio)) ? Math.round(leadOpportunityRatio) : 0 %>%
<%= _.isUndefined(i18n['Win ratio'])?'Win ratio':i18n['Win ratio'] %>
<%= totalSalesCount %>
<%= _.isUndefined(i18n['for'])?'for':i18n['for'] %>
<%= accounting.formatMoney(Math.round(totalSalesAmount.toFixed(2)), JSON.parse(leadModel.get('moneyFormat'))) %>
<%= _.isUndefined(i18n['Customer since'])?'Customer since':i18n['Customer since'] %>: <%= (!_.isUndefined(leadModel.get('firstPurchaseDate').created_at)) ? moment(leadModel.get('firstPurchaseDate').created_at, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') :'' %>
<%= _.isUndefined(i18n['Upcoming events'])?'Upcoming events':i18n['Upcoming events'] %> |
---|
<%= _.isUndefined(i18n['Today'])?'Today':i18n['Today'] %> |
---|