{extends file=$element.methods->getTemplatePath('autocomplete')}

{block name=elementOperationsButtons append}

	{if $element.style.buttons and CurrentUserAccess::getInstance()->hasAccessToOption('Modules/Partners/Corporates-insert') and !$element.disabled and !$element.style.simple}
		<a href="#;" onclick="corporateInsert();" class="link">{$_LANG.formField.inputs.generalAutocomplete.buttons.addCorporate}</a>
	{/if}

{/block}

{block name=advancedSearchParams}
	text: this.getValue(),
	searchField: 'corp.alias',
	searchMode: 'starts'
{/block}
