{extends file=$smarty.const.SMARTY_LAYOUT_CONTENT_LIST_TABLE_CURRENT_DATA}

{block name="listing-td-content-name"}
	{if !$rowFields['name']}
		-
	{else}
		{$rowFields['name']}
	{/if}
{/block}

{block name="listing-td-content-corporates"}
	{if !$rowFields['idCorporatesList']}
		-
	{else}
		{foreach $rowFields['idCorporatesList'] as $idCorp}
			{corporateLabel ref=$idCorp}
			{if !$idCorp@last},{/if}
		{/foreach}
	{/if}
{/block}


{block name="listing-td-content-commissionDescription"}
	{if $rowFields['commissionInformation']}
		{if strlen((string)$rowFields['commissionInformation']->percent)}
			{$rowFields['commissionInformation']->percent}%
		{elseif strlen((string)$rowFields['commissionInformation']->value)}
			{$rowFields['commissionInformation']->value|priceFormat:$rowFields['commissionInformation']->currency}
		{/if}

		{if $rowFields['commissionInformation']->included}
			{$lang['formFields']['commission']['comm']}
		{else}
			{$lang['formFields']['commission']['net']}
		{/if}
	{/if}
{/block}

{block name="listing-td-content-discountDescription"}
	{if $rowFields['discountInformation']}
		{if strlen((string)$rowFields['discountInformation']->percent)}
			{$rowFields['discountInformation']->percent}%
			{$lang['formFields']['from']} {$_LANG['OfferProfileRules']['discount']['percentSource'][$rowFields['discountInformation']->percentSource]}
		{elseif strlen((string)$rowFields['discountInformation']->value)}
			{$rowFields['discountInformation']->value|priceFormat:$rowFields['discountInformation']->currency}
		{/if}
	{/if}
{/block}

{block name="listing-td-content-serviceFeeDescription"}
	{if $rowFields['serviceFeeInformation']}
		<div>
			{if strlen((string)$rowFields['serviceFeeInformation']->percent)}
				{$rowFields['serviceFeeInformation']->percent}%
				{$lang['formFields']['from']} {$_LANG['OfferProfileRules']['serviceFee']['percentSource'][$rowFields['serviceFeeInformation']->percentSource]}
			{elseif strlen((string)$rowFields['serviceFeeInformation']->value)}
				{$rowFields['serviceFeeInformation']->value|priceFormat:$rowFields['serviceFeeInformation']->currency}
				({$lang['formFields']['serviceFee'][$rowFields['serviceFeeInformation']->mode]})
			{/if}
		</div>
		
	{/if}
{/block}

{block name="listing-tr-class"}
	{if $rowFields['active'] == '0'}
		disabled
	{/if}
{/block}

{block name="listing-td-content-addTime"}
	<div>{$rowFields['addTime']|dateTimeFormat:'dateWithHM'}</div>
	<div>[#{$rowFields['id']}]</div>
{/block}
