<form id="agentForm" class="form-horizontal ">
    <fieldset>
        <?php require_once(ROOT_URL.'/forms/elements/agent_details.frm');?>
        <div class="spacer"></div>
        <input id="function" type="hidden" name="FUNCTION" value="insert">
        <input id="function" type="hidden" name="tenant" value="<?=TENANT_URL?>">
        <input id="btn_create" type="submit" name="btn_create" class="hidden">
    </fieldset>

    <div class="col-12 col-md-12 text-center">
        <input id="btn_save" class="btn btn-info" type="submit" name="submit" value="Submit" style="display: none" />
    </div>
</form>
<script>
document.addEventListener("DOMContentLoaded", function() {
    document.getElementById('navBox').innerHTML =
        '<li class="breadcrumb-item"><a href="index.php?t=includes/master&p=agent.php&view=list">Agents</a></li><i class="fad fa-angle-double-right mx-2 mt-1" aria-hidden="true"></i></li><li class="breadcrumb-item active"><a href="javascript:void(0)">New Agent</a></li>';

    document.getElementById('footerControls').innerHTML =
        '<button class="btn btn-secondary" onclick="triggerAction(\'btn_create\')">CREATE</button>';
});
</script>