<? global $vis_language;?>
<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 $integration_name; ?> </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','setting',{'vis_module':'setting','vis_operation':'setting_menu'});"><?echo $vis_language['TXTSETTINGS'];?></a></li>
			<li><a  class="link" href="#/setting/integration_list/<? echo $integration_name;?>/29"> <? echo $integration_name;?></a> </li>
			<li class="active"><? echo $vis_language['TXTUPDATE'].' '.$integration_name;?></li>
		</ul>
	</div>
</section>
<section class="padder">
	<section class="panel panel-default">
		<header class="panel-heading sub_header"><? echo $vis_language['TXTUPDATE'].' '.$integration_name;?></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">
               <label class="control-label"><? echo $department['domain_name']; ?></label>
             </div>
		</div>
		<div class="form-group">
				<label class="col-sm-2 control-label"><? echo $vis_language['TXTFRESHBOOKSDOMAIN']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_freshbook_domain" id="vis_freshbook_domain" value="<? echo $integration_details['admin_user']; ?>"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><? echo$vis_language['TXTUSRKEY']; ?></label>
				<div class="col-sm-10">
					<input type="text" class="form-control input-sm" name="vis_token" id="vis_token" value="<? echo $integration_details['api_key']; ?>"/>
				</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"<? if($integration_details['is_enabled']!=1) echo 'radio-no-uncheck'; ?>  >
				<input type="checkbox"  name="vis_status"  id="vis_status" value="1" <? if($integration_details['is_enabled']==1) echo ' checked="checked"'; ?> >
				<span></span>
				</label>
			</div>
		</div>
        <input type="hidden" name="vis_type" id="vis_type" value="<? echo $integration_type;?>" />
        <input type="hidden" name="vis_integration_name" id="vis_integration_name" value="<? echo $integration_name;?>" />
		<input type="hidden" name="vis_integration_id"  id="vis_integration_id" value="<? echo $integration_details['integration_id']; ?>"/>
		<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':'update_freshbook_integration_setting','vis_form':'vis_integration_form'})"><? echo $vis_language['TXTUPDATE']; ?></button>
				</div>
			</div>
		</div>
	</section>
</section>
