{* ----------------------------- PASSENGERS CONTROLS ----------------------------- *}
<div id="passengersFiltersDiv" style="padding:2px 0px 2px 0px;{if $step1_tab!='passengers'}display:none;{/if}">
	<table width="100%" cellpadding="0" cellspacing="0">
		<td class="boxTitle" valign="bottom">
			{$_LANG.orderForm.clientsControls.passengersTitle}
		</td>
		<td style="white-space:nowrap">
			{$_LANG.orderForm.clientsControls.addExistingPassenger}
			{input type='\App\Form\Input\Autocomplete_Customer' name="typeCustomerName" id="addCustomerId"
				onPostSelect="
					var ac= window['formFieldAutocomplete_addCustomerId'];
					$('iframe1').src='clientsList.php?addCustomerId='+ac.getCode();
					ac.clearValue();"
				assign=input}
			{$input->setStyle('buttons', false)
				->setWidth(400)
				->setFilters('hideDuplicates', 1)
				->render()}
		</td>
		<td style="white-space:nowrap" align="right">
			<button type="button"
				{if CurrentUserAccess::getInstance()->hasAccessToOption('Modules/Partners/Customers-insert')}
					onClick="customerInsert();"
				{else}
					disabled="1"
				{/if}
			>{$_LANG.orderForm.clientsControls.addNewPassengerButton}</button>
		</td>
	</table>
</div>

{* ----------------------------- CORPORATES/SUBAGENTS CONTROLS ----------------------------- *}
<div id="corporatesFiltersDiv" style="padding:2px 0px 2px 0px;{if $step1_tab!='corporates'}display:none;{/if}">
	<table width="100%" cellpadding="0" cellspacing="0">
		<td class="boxTitle" valign="bottom">
			{$_LANG.orderForm.clientsControls.companiesTitle}
		</td>
		<td style="white-space:nowrap">
			{$_LANG.orderForm.clientsControls.addExistingCompany}

			{input type='\App\Form\Input\Autocomplete_Corporate' name="typeCorporateName" id="addCorporateId"
				onPostSelect="
					var ac= window['formFieldAutocomplete_addCorporateId'];
					$('iframe1').src='clientsList.php?addCorporateId='+ac.getCode();
					ac.clearValue();"
				assign=input}
			{$input->setStyle('buttons', false)
				->setWidth(400)
				->setFilters('hideDuplicates', 1)
				->render()}
		</td>
		<td style="white-space:nowrap" align="right">
			<button
				type="button"
				{if CurrentUserAccess::getInstance()->hasAccessToOption('Modules/Partners/Corporates-insert')}
					onClick="corporateInsert();"
				{else}
					disabled="1"
				{/if}
			>{$_LANG.orderForm.clientsControls.addNewCompanyButton}</button>
		</td>
	</table>
</div>
