{extends file=$smarty.const.SMARTY_LAYOUT_CONTENT_LIST_TABLE_CURRENT_DATA}

{block name="listing-td-content-id"}
   {$rowFields['addTime']|dateTimeFormat:"dateWithHMS"}
{/block}

{block name="listing-td-content-fromEmail"}
    <div>{$rowFields['fromEmail']}</div>
    {if $rowFields['idSenderUser']}
        <div>
            {userLabel ref=$rowFields['idSenderUser']}
        </div>
    {elseif $rowFields['fromName']}
        <div><i>({$rowFields['fromName']})</i></div>
    {/if}
{/block}

{block name="listing-td-content-to"}
    {if $rowFields['to']}
        {foreach $rowFields['to'] as $key => $toAddr}
            <div {if !is_numeric($key)} tooltip="{$key}" {/if}>
                {$toAddr}
            </div>

        {/foreach}
    {/if}
{/block}
{block name="listing-td-content-status"}
    {if $rowFields['status']=='error'}
        <div style='color:red; font-weight:bold;'>
    {elseif $rowFields['status']=='sent'}
        <div style='color:green; font-weight:bold;'>
    {else}
        <div style='font-weight:bold;'>
    {/if}
        {$lang['index']['filters']['status'][$rowFields['status']]}
    </div>

    {if $rowFields['status']=='error' or $rowFields['status']=='pending'}
        <div style='color:red'>
            {$rowFields['errorMessage']}
        </div>
    {/if}
{/block}

{block name="listing-td-content-priority"}
    {if $rowFields['priority']=='3'}
        <div style='color:darkblue; font-weight:bold;'>
    {elseif $rowFields['priority']=='2'}
        <div style='color:dodgerblue; font-weight:bold;'>
    {else}
        <div style='color:grey; font-weight:bold;'>
    {/if}

    {$lang['index']['filters']['priority'][$rowFields['priority']]}
{/block}