<patTemplate:tmpl name="pageoutput" unusedvars="strip">
<script language="javascript" type="text/javascript">
	<!--
	jomresJquery(document).ready(function () {
		make_datatable('list_clients', '{PAGETITLE}', '{LIVESITE}');
	});
	//-->

function toggle_enabled(integration_id) {
		jomresJquery.ajax({ url:'{JOMRES_SITEPAGE_URL_AJAX}&task=ajax_webhooks_enable_toggle&integration_id='+integration_id,success: function(data)
				{
				//populateDiv("auth_method_form_fields",data);
                console.log(data);
				}, async: true
			});
		}
</script>
<h2 class="page-header">{PAGETITLE}</h2>
<div class="well">
	{JOMRESTOOLBAR}
</div>

<div class="row">
	<div class="col-md-8">
        <table class="table table-striped" id="list_emails" width="100%">
            <thead>
                <tr>
                    <th>{COMMON_EDIT}</th>
                    <th>{WEBHOOKS_INTEGRATION_ID}</th>
                    <th>{WEBHOOKS_INTEGRATION_URL}</th>
                    <th>{WEBHOOKS_ENABLED}</th>
                </tr>
            </thead>
            <tbody>
            <patTemplate:tmpl name="rows" unusedvars="strip">
                <tr>
                    <td>{EDITLINK}</td>
                    <td>{INTEGRATION_ID}</td>
                    <td>{URL}</td>
                    <td>{ENABLED}</td>
                </tr>
            </patTemplate:tmpl>
            </tbody>
        </table>
    </div>
    <div class="col-md-4">
        {MANAGER_PROPERTIES}
    </div>
</div>


</patTemplate:tmpl>