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

{block name=input}
	<div class="autocomplete-formulaInputContainer">
		<textarea
			class="inputElement{if $element.style.CSSClass} {$element.style.CSSClass}{/if}  {$element.style.extraCSSClass}"
			id="{$element.id}"
			name="{$element.name}"
			wrap="off"
	
			style="width:100%;
				{if $element.style.height} height:{$element.style.height}px;{/if}
				{if $element.style.width} width:{$element.style.width}px;{/if}
			"
		>{$element.value}</textarea>
	</div>
{/block}


<script type="text/javascript">
	{block name=script append}
	MVC.scheduleOnLoad(function() {
		formFieldAutocompleteFormula_{$element.id} = (new _inputAutocompleteFormulaTextarea("{$element.url}"))
			.attach($('{$element.id}'))
			.initialize();
	});
	{/block}
</script>
