<div class="deals-holder" style="display: block;">
	<div class="deals-card-panel">
		<div class="gen-toolbar toolbar">
			<ul id="general_toolbar">
				<li>
					<a id="link-deal-assign" href="#" title="Delete" name="link-contact-delete">Assign To</a>
					
					<a id="link-deal-status" href="#" title="Change the status of these deals." name="link-contact-delete">Status</a>
					
				</li>
			</ul>
			<span id="link-deal-status-options" class="hide">
			<ul>
				<li><a id="inprogress-deal-status" href="#">In Progress</a></li>
				<li><a id="won-deal-status" href="#">Won</a></li>
				<li><a id="lost-deal-status" href="#">Lost</a></li>
				<li><a id="cancel-deal-status" href="#">Cancel</a></li>
			</ul>
			</span>
			
			<span id="link-deal-assign-options" class="hide">
			<ul>
				<li>
					<select id="assign-to-user-select">
						<option value="-1">-- Select a user --</option>
						[%
						$.each(users,function(i,n){
						%]
						<option value="[%=n.id%]">[%=user_fullname(n)%]</option>
						[%	
						});
						%]
					</select>
				</li>

				<li><a id="cancel-deal-assign" href="#">Cancel</a></li>
			</ul>
			</span>
			
			<span class="contact-name">Selected Deals</span>
		</div>
	</div>
	
	
	<div id="deals-NT" class="deals-editlist-pane">
		<div class="feedback hide">
			<p>Many selected</p>
		</div>
		
		<div class="GenericTable GreyTable NewTable">
		<table id="issueList">
		<thead>
			<tr>
				<th>Deal Name</th>
				<th>Value</th>
				<th>Probability</th>
				<th>Assigned To</th>
			</tr>
		</thead>
		<tbody>
			[%
			$.each(groups,function(gindex,group){
				if(groups_selected_lookup[gindex]!=0 && group!=null){
				%]
				<tr class="group-title group-title-[%=group.css%]"><td colspan="5">[%=group.title%]</td></tr>
				[%
				var alt=false;
					$.each(groups_selected_deals_lookup[gindex],function(dindex,deal_id){
				
				var deal=deals[deal_id];

				alt=!alt;
				%]

				<tr class="[%=(alt==true)?'odd':''%]">
					<td class="cell_deal_name">[%=deal.name%]</td>
					
					<td class="cell_deal_amount_column darker">[%=format_currency(deal.amount)%]</td>
					<td class="cell_deal_probability">[%=deal.probability%]%</td>
					<td class="cell_deal_assignedto">[%=user_fullname(users[deal.assignedTo])%]</td>
				</tr>

				[%
				
					
					});	
				}

			});
			%]
		</tbody>
</div>