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

{block name=elementOperationsButtons append}

	{if $element.style.buttons and !$element.disabled and CurrentUserAccess::getInstance()->hasAccessToOption('Modules/Partners/SupplierProducts-insert')}
		{if $element.insertDefaultValues}
			{$params=json_encode($element.insertDefaultValues)}
		{else}
			{$params="\"\""}
		{/if}
		<a href="#;" onclick='supplierProductInsert(0, {$params});' class="link">{$_LANG.formField.inputs.generalAutocomplete.buttons.addSupplierProduct}</a>
	{/if}

{/block}

