<div class="buttons">
    {{if !empty($form) && !empty($form.buttons)}}
        {{foreach from=$form.buttons key=val item=button}}
        {{sugar_button module="$module" id=$button form_id="$form_id" view="$view"}}
        {{/foreach}}
    {{else}}
        {{sugar_button module="$module" id="SAVE" view="$view" form_id="$form_id"}}
        {{sugar_button module="$module" id="CANCEL" view="$view" form_id="$form_id" }}
    {{/if}}
    {if $showVCRControl}
            <button type="button" id="save_and_continue" class="button saveAndContinue" title="{$APP.LBL_SAVE_AND_CONTINUE}" onClick="SUGAR.saveAndContinue(this);">
                {$APP.LBL_SAVE_AND_CONTINUE}
            </button>
    {/if}
    {{if empty($form.hideAudit) || !$form.hideAudit}}
        {{sugar_button module="$module" id="Audit" view="$view" form_id="$form_id"}}
    {{/if}}
    {{sugar_action_menu buttons=$footer_buttons class="fancymenu" flat=true}}

</div>
