{if ! #params.label_within}{/if} {foreach name="#date_fields" key="j" value="value"} {if #value === 'dd'}{set var="$date_template" value="day"}{/if} {if #value === 'mm'}{set var="$date_template" value="month"}{/if} {if #value === 'yyyy'}{set var="$date_template" value="year"}{/if} {set var="$template" concat="templates/form/web/widgets/date_,$date_template,.html"} {include file="$template"} {/foreach}