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

{block name=elementOperationsButtons append}
	{if $element.style.buttons and CurrentUserAccess::getInstance()->hasAccessToSection('Modules/Partners/Trusts') and !$element.disabled}
		<a href="#;" class="link" onclick="
			Popup2.create().setId('trustInsert').setUrl( MVC.appUrl('Partners/Trusts', 'insert', { 'type' : '{if $element.elementClass=='App\Form\Input\Autocomplete_SupplierTrust'}supplier{else}corporate{/if}' } )).setDimensions(500, 300).show();
		">{$_LANG.formField.inputs.generalAutocomplete.buttons.addTrust}</a>
	{/if}
{/block}
