{strip}
{foreach from=$warnings item='warning'}
    <h4>{if isset($warning->msg)}{$warning->msg}{else}{$warning->text}{/if}</h4>
    {if isset($warning->key)}<small>{$warning->key}</small>{/if}
{/foreach}
{/strip}