<section id="breadcrumb" class="row m-b m-l-none m-r-none">
	<div class="col-sm-6">
		<h3 class="m-b-xs text-black"><span><? echo $vis_language['TXTINSIGHTLY'];?></span></h3>
		<ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
			<li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME'];?></a></li>
			<li><a class="link" href="#/setting/setting_menu/<? echo $vis_language['TXTSETTINGS'];?>" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTSETTINGS'];?>',{'vis_module':'setting','vis_operation':'setting_menu'});"><? echo $vis_language['TXTSETTINGS'];?></a></li>
			<li><a  class="link" href="#/setting/integration_list/<? echo $vis_language['TXTINSIGHTLY'];?>/33"><? echo $vis_language['TXTINSIGHTLY'];?></a> </li>
			<li class="active"><? echo $vis_language['TXTADDINSIGHTLY'];?></li>
		</ul>
	</div>
</section>
<section class="padder">
	<section class="panel panel-default">
		<header class="panel-heading sub_header"><? echo $vis_language['TXTADDINSIGHTLY']; ?></header>
		<div class="panel-body">
		<form class="form-horizontal" id="vis_integration_form" name="vis_integration_form" method="post" >
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo $vis_language['TXTDOMAIN']; ?></label>
				<div class="col-sm-10">
					<select class="form-control input-sm selectpicker" name="vis_domain" id="vis_domain" <? if(count($department) > 10) echo 'data-live-search="true"' ?>>
						<option value="">-- <? echo $vis_language['TXTSELECTDOMAIN']; ?> --</option><?
						for($i=0;$i<count($department);$i++) echo '<option value="'.$department[$i]['domain_id'].'">'.$department[$i]['domain_name'].'</option>'; ?>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo $vis_language['TXTINSIGHTLYAPIURL']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_url" id="vis_url" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTAPIKEY']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_api" id="vis_api" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" ><? echo $vis_language['TXTSTATUS']; ?></label>
				<div class="col-sm-1">
					<label class="switch"  value="0" radio-no-uncheck>
						<input type="checkbox"  name="vis_status"  id="vis_status" value="1"  checked="checked" >
						<span></span>
					</label>
				</div>
			</div>
           
			<div class="line b-b line-lg pull-in"></div><br/>
				<div class="form-group">
					<div class="col-sm-4 col-sm-offset-2">
						<button type="button" class="btn btn-primary" onclick="$('#vis_workpanel_div').visExecution('submit_form',{'vis_module':'subsetting', 'vis_operation':'add_insightly', 'vis_form':'vis_integration_form'})"><? echo $vis_language['TXTADD']; ?></button>
					</div>
				</div>
			</div>
		</form>
	</section>
</section>
<script>
	$('.selectpicker').selectpicker();
</script>