{foreach from=$cf_invoice item="cfield"}
{$cfield.field_caption|htmlspecialchars} :
{cfield field=$cfield} {if $cfield.is_required}*{/if}
{/foreach}