{extends file=$smarty.const.SMARTY_LAYOUT_CONTENT_LIST_TABLE_CURRENT_DATA}

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

{block name="listing-td-content-contractNumber" append}
	 / {$rowFields['contractDate']}
{/block}

{block name="listing-td-content-type"}
    {$_LANG['generalData']['contractTypes'][$rowFields['type']]}
{/block}

{block name="listing-td-content-idSupplier"}
	 {supplierLabel ref=$rowFields['idSupplier']}
{/block}

{block name="listing-td-content-serviceCode"}
	 {serviceTypeLabel ref=$rowFields['serviceCode']}
{/block}

{block name="listing-td-content-active"}
	{if $rowFields['active']==1}
		{$lang['status']['active']}
	{else}
		{$lang['status']['inactive']}
	{/if}
{/block}

{block name="listing-td-content-expireDate"}
    {if $rowFields['expireDate'] and $rowFields['active'] and $rowFields['expireDate']<TODAY_ISO}
        <div style="color:red">{$rowFields['expireDate']|dateTimeFormat}</div>
    {else}
        {$rowFields['expireDate']|dateTimeFormat}
    {/if}
{/block}