% if(!_.isEmpty(opportunityData)){ %>
<% if(newOpportunityRow === true) { %>
<% opportunityPercentage = '' %>
<% if(opportunityData.get('opportunity_stage_id') != 0 && opportunityData.get('opportunity_stage_id') != 1 && opportunityData.get('opportunity_stage_id') != '100') { %>
<% opportunityPercentage = ' '+opportunityData.get('opportunity_stage_id')+ '%' %>
<% } %>
<%= opportunityData.get('opportunity_name') %>
<%= opportunityCreatedAt %>
<%= expectedCloseDate %>
<%= opportunityStages[opportunityData.get('opportunity_stage_id')] + opportunityPercentage %>
<%= currencySymbol + parseInt(opportunityData.get('opportunity_value'), 10) %>
<%= (_.isEmpty(opportunityData.get('quote_id'))) ? _.isUndefined(i18n['No quote was created for this opportunity'])?'No quote was created for this opportunity':i18n['No quote was created for this opportunity'] : '' %>
<%= _.isUndefined(i18n['Oops! This lead is missing an email address. Please add one to proceed with creating a quote.'])?'Oops! This lead is missing an email address. Please add one to proceed with creating a quote.':i18n['Oops! This lead is missing an email address. Please add one to proceed with creating a quote.'] %>
class="lead-form-timeline-opportunity-create-option btn checked-btn" name="lead-form-timeline-opportunity-create-option" data-checked="true" data-type="create_new_quote"><%= _.isUndefined(i18n['Create a new quote'])?'Create a new quote':i18n['Create a new quote'] %>
class="lead-form-timeline-opportunity-create-option btn" name="lead-form-timeline-opportunity-create-option" data-checked="false" data-type="create_quote_duplicate"><%= _.isUndefined(i18n['Duplicate or Create quote from a template'])?'Duplicate or Create quote from a template':i18n['Duplicate or Create quote from a template'] %>
<% } %>
<% if(!_.isEmpty(opportunityData.get('quote_id'))) { %>
<% _.each(opportunityData.get('opportunityQuoteInfo'), function(oppData){ %>
<%= oppData.title %>
<% createdAt = moment(oppData.created_at, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') %>
<%= (createdAt !== 'Invalid date') ? createdAt : '' %>
<% expiredAt = moment(oppData.expired_at, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') %>
<%= (expiredAt !== 'Invalid date') ? expiredAt : '' %>
<% if (oppData.cartStatus === 'partial') {%>
<%= oppData.cartStatus %>
<% } else { %>
<%= oppData.status %>
<% } %>
<%= accounting.formatMoney(oppData.cartTotal, JSON.parse(moneyFormat)) %>
<% _.each(quoteOwners, function(quoteOwnerName, ownerId) { %>
value="<%= ownerId %>"><%= quoteOwnerName %>
<% }) %>
<% }) %>
<% } %>
<% } %>