{extends file="{$smarty.const.APP_REAL_PATH}ModulesAbstract/ImportedOrdersFileManager/View/_tpl/displayFileDetails.tpl"}

{block name="tabContents"}
	{if !$error}
		{$transactionsObjectExplorer->preloadCss($CSS)}
		{$transactionsObjectExplorer->preloadJs($JS)}
		{$transactionsObjectExplorer->renderHtml()}
		
		<div class="generalAssociations">
			<h2 style="padding: 1em; margin: 0;">general associations</h2>
			{$generalAssociationsObjectExplorer->preloadCss($CSS)}
			{$generalAssociationsObjectExplorer->preloadJs($JS)}
			{$generalAssociationsObjectExplorer->renderHtml()}
		</div>
		
		{if $transactionsMessages && $transactionsMessages->getMessagesCount()}
			<div class="messages">
				<table>
					<tbody class="log log-parser logs transactionsMessages">
						<tr>
							<td class="w100p" colspan="2">
								{foreach $transactionsMessages->getMessages() as $msg}
									<div class="log-row log-{$msg->getType()}">{$msg->getText()}</div>
								{/foreach}
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		{/if}

		<div class="log">
			<table class="simpleList">
				<tbody class="log">
					<tr>
						<td class="ts">{"%03.3fs"|sprintf:$logData['duration']}</td>
						<td class="mem">{"%03.1fMb"|sprintf:$logData['memory']}</td>
						<td class="msg">{$logData['message']}</td>
					</tr>
				</tbody>
			</table>
		</div>
	{/if}
{/block}

{block name="loader-postload" append}
	{if !$error}
		<script type='text/javascript'>
			{$transactionsObjectExplorer->renderJs($JS)}
			{$generalAssociationsObjectExplorer->renderJs($JS)}
		</script>
	{/if}
{/block}