<p class="formstyle {if isset($collapse)}{$collapse}{/if} {if isset($row_no)}row_no{$row_no}{/if}"
    style="{if isset($hide) && $hide}display:none;{/if} {if isset($color)}background-color:{$color}{/if}">{*
    *}{include file="r/parts/pre_field.tpl"}{*
    *}{if !$no_newline}<br>{/if}{*
	*}{include file='r/select-only.tpl' name="{$name}_type"
			noempty=1 class="" default=$pre_default
			list=$endpoint_list id="id" text="name" past_span_text=""}{*
    *}<input type="{if isset($type)}{$type}{else}text{/if}"
            name="{$name}" 
            value="{if isset($default)}{str_replace('&nbsp;', ' ', $default)}{/if}"{*Need to remove &nbsp; for hu formated float values*}
            id="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}"
	        class="{if isset($class)}{$class}{/if} {if isset($readonly) && $readonly}ignoredisabled{/if} {if isset($within_filter) && $within_filter}within_filter{/if}"
	    {if isset($readonly) && $readonly}readonly="readonly"{/if}
	    {if isset($maxlength)}maxlength="{$maxlength}"{/if}
	    style="{if isset($deactivate_possible) && $deactivate}display:none;{/if}{if isset($main_style)}{$main_style}{/if}"
            {if isset($poptitle)}title="{if isset($i.$poptitle)}{$i.$poptitle}{else}{$poptitle}{/if}"{/if}
            {if isset($placeholder)}placeholder="{if isset($i.$placeholder)}{$i.$placeholder}{else}{$placeholder}{/if}"{/if}
	    {if isset($filter_extra)}{$filter_extra}{/if}
            {if isset($class) && stripos($class, 'required')!==false}required{/if}
	/>{*
    *}{include file="r/parts/past_field.tpl"}
</p>
