{strip}
{* $Id: tracker_error.tpl 35421 2011-07-16 13:09:54Z changi67 $ *}
{****  Display warnings about incorrect values and missing mandatory fields ***}
{if isset($err_mandatory) && count($err_mandatory) > 0}
{remarksbox type='errors' title="{tr}Errors{/tr}"}
	<em class='mandatory_note'>{tr}Following mandatory fields are missing{/tr}</em>&nbsp;:<br/>
	{section name=ix loop=$err_mandatory}
		{$err_mandatory[ix].name|escape}
		{if !$smarty.section.ix.last},&nbsp;{/if}
	{/section}
{/remarksbox}
{/if}

{if isset($err_value) && count($err_value) > 0}
{remarksbox type='errors' title="{tr}Errors{/tr}"}
	<em class='mandatory_note'>{tr}Following fields are incorrect{/tr}</em>&nbsp;:<br/>
	{section name=ix loop=$err_value}
		{$err_value[ix].name|escape}
		{if !empty($err_value[ix].errorMsg)} (<em>{$err_value[ix].errorMsg|escape}</em>){/if}
		{if !$smarty.section.ix.last},&nbsp;{/if}
	{/section}
{/remarksbox}
{/if}
{/strip}
