{extends file=$smarty.const.SMARTY_LAYOUT_MAIN_POPUP_FORM}

{block name="css"}
	<style>
		.entities {
			text-align:center;
			margin-bottom: 20px;
		}
	</style>
{/block}

{block name="popupContent" append}
	
	{if $ids && !$closePopup}
		<div class="entities">
		{foreach $ids as $idEntity}
			{if $labelType == 'customer'}
				{customerLabel ref=$idEntity}
			{elseif $labelType == 'corporate'}
				{corporateLabel ref=$idEntity}
			{elseif $labelType == 'service'}
				{serviceLabel ref=$idEntity}
			{elseif $labelType == 'invoice'}
				{invoiceLabel ref=$idEntity}
			{elseif $labelType == 'supplierInvoice'}
				{supplierInvoiceLabel ref=$idEntity}
			{elseif $labelType == 'contactPerson'}
				{contactPersonLabel ref=$idEntity}
			{elseif $labelType == 'corporateOffice'}
				{corporateOfficeLabel ref=$idEntity}
			{elseif $labelType == 'office'}
				{officeLabel ref=$idEntity}
			{elseif $labelType == 'supplier'}
				{supplierLabel ref=$idEntity}
			{elseif $labelType == 'supplierProduct'}
				{supplierProductLabel ref=$idEntity}
			{elseif $labelType == 'user'}
				{userLabel ref=$idEntity}
			{elseif $labelType == 'invoiceCashing'}
				{invoiceCashingLabel ref=$idEntity}
			{elseif $labelType == 'supplierInvoicePayment'}
				{supplierInvoicePaymentLabel ref=$idEntity}
			{elseif $labelType == 'miceProject'}
				{miceProjectLabel ref=$idEntity}
			{/if}
			{if !$idEntity@last}, {/if} 
		{/foreach}
		</div>
	{/if}
{/block}