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

{block name=input}
	<div id="{$element.id}" class="{$element.class} {$element.style.extraCSSClass} inputElement flex-parent" style="{if $element.style.totalWidth} width:{$element.style.totalWidth}px; {/if}">
		{for $index=0 to $element.multiplier-1}
			{assign var=key value=$element.labelKeys[$index]|default:$index}

			{if $element.labels && $element.settings.labelVisibility}
			<div class="{$element.style.extraCSSClass} {$element.style.CSSClass}-container flex-child">
				{if $element.labels[$index]}
					<div class="label"><label for="{$element.id}_{$key}_">{$element.labels[$index]}</label></div>
				{else}
					<div class="label">&nbsp;</div>
				{/if}
			{/if}

			{block name=inputElement}
				<div class="inputElement {if !($element.labels && $element.settings.labelVisibility)} flex-child{/if}">
					<input type="text"
						{if $element.style.CSSClass}
							class="{$element.style.CSSClass} {$element.style.extraCSSClass}"
						{/if}

						id="{$element.id}_{$key}_"
						name="{$element.name}[{$key}]"
						value="{$element.value[$index]}"
						{if $element.disabled || $element.disabledLabelKeys[$index]}disabled="disabled"{/if}

						style="	{if $element.style.height} height:{$element.style.height}px;{/if}"
					/>
				</div>

				{$elements[]="{$element.id}_{$key}_"}
			{/block}

			{if $element.labels && $element.settings.labelVisibility}
				</div>
			{/if}
		{/for}

		{if $element['element']->getTooltip()}
			<var class="icon-info" tooltip="{$element['element']->getTooltip()}"></var>
			{$tmp=$element['element']->setStyle('flag_tooltipRendered', true)}
		{/if}
	{block name=inputContainer_end}
		</div>
	{/block}

	<div id="{$element.id}_messageContainer"></div>
{/block}

