{if isset($webdoc.message)}
{foreach from=$webdoc.message key=key item=mess}
{if $key === "form_error"}
    <p>An errors were detected:</p>
    <ul>
{foreach from=$mess item=error_mess}
      <li>{$error_mess}</li>
{/foreach}
    </ul>    
{else}
    <p>{$mess}</p>
{/if}
{/foreach}
{/if}
