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