<input type="{if isset($type)}{$type}{else}text{/if}"
    style="{if isset($hide) && $hide}display:none;{/if}"
    name="{$name}{if isset($uniqueid)}[{$uniqueid}]{/if}"
    id="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}{if isset($uniqueid)}{$uniqueid}{/if}"
    value="{if isset($default)}{str_replace('&nbsp;', ' ', $default)}{/if}" {*Need to remove &nbsp; for hu formated float values*}
    {if isset($script)}{$script}{/if}
    {if isset($class)}class="{$class}"{/if} 
    {if isset($poptitle)}title="{if isset($i.$poptitle)}{$i.$poptitle}{else}{$poptitle}{/if}"{/if}
    {if isset($readonly) && $readonly}readonly="readonly"{/if}
    {if isset($maxlength)}maxlength="{$maxlength}"{/if}
    {if isset($filter_extra)}{$filter_extra}{/if}
    {if isset($placeholder)}placeholder="{if isset($i.$placeholder)}{$i.$placeholder}{else}{$placeholder}{/if}"{/if}
    {if isset($class) && stripos($class, 'required')!==false}required{/if}
    />{if isset($show_selector_link)}
    <span style="{if isset($hide) && $hide}display:none;{/if}"
          onclick="$('#{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}').trigger('dblclick', [true]);"
          class="my_selector_link"></span>
    {/if}{*
*}{include file="r/parts/past_field.tpl"}
