{if NOT isset($class)}
    {$class = ''}
{/if}

<p class="formstyle {if isset($collapse)}{$collapse}{/if} {if isset($row_no)}row_no{$row_no}{/if}"
    {if isset($hide) && $hide} style="display:none;"{/if}>
    {include file="r/parts/pre_field.tpl"}
    <span id="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}" class="{$class}"
    {if isset($deactivate_possible) && $deactivate}style="display:none;"{/if}>
        {include file='r/input-only.tpl' id="{$name}__number" name="{$name}__number" class="{$class} t-smaller" deactivate=FALSE}
        <select id="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}__unit" name="{$name}__unit" class="t-midsmall"
        {if isset($filter_extra)}{$filter_extra}{/if}
        >
            <option value="1" {if $default === 1} selected{/if}>{$i.basic_days}</option>
            <option value="2" {if $default === 2} selected{/if}>{$i.basic_weeks}</option>
            <option value="3" {if $default === 3} selected{/if}>{$i.basic_months}</option>
            <option value="4" {if $default === 4} selected{/if}>{$i.basic_years}</option>
        </select>
    </span>
    {include file="r/parts/past_field.tpl"}
</p>