{if $id}{/if}

{if $mode == 'add'}{trans key="common.add"}{else}{trans key="common.editing"}{/if} {trans key="custom_form.custom_form"} {$title}

{trans key="common.cancel"} {if $mode == 'update'}{trans key="custom_form.form_data"}{/if}

{form form=$form}
{if $mode == 'update'} {include file="templates/pages/custom-form/modal-field.html"} {/if} {if $handle == 'insert' && $itemsCount <= 1} {include file="templates/pages/custom-form/modal-info.html"} {/if}