<fieldset class="borderbottom">
    {if empty($collective_offer_view)}
        {include file='r/ajaxselect.tpl' name="{$prefix}_address" title="offers_management_address_name"
            add_icons_file="project_participants"
            filter_project_participants_project_field="{$prefix}_project"
            class="offer_only addressselect fulltext_search t-mid required"}
    {/if}

    {include file='r/input.tpl' name="{$prefix}_offer_no" title="offers_management_offer_no"
        collapse='formcoll' class="offer_only" maxlength=50}
    {if empty($collective_offer_view)}
        {include file='r/input.tpl' name="{$prefix}_title" title="offers_management_title"
            collapse='formcoll' class="t-mid" maxlength=80}
    {/if}

    {if empty($collective_offer_view)}
        {include file='r/textarea.tpl' name="{$prefix}_name" title="offers_management_name"
            collapse='formcoll' class="t-mid" maxlength=1250}
    {/if}
    {include file='r/date.tpl' name="{$prefix}_date" title="offers_management_date"
        collapse='formcoll' class="offer_only dateUS"}
    {*For later implementation of TIME for Date*}
    {include file='r/hidden.tpl' name="{$prefix}_time"}

    {if empty($collective_offer_view)}
        {include file='r/select.tpl' name="{$prefix}_staff_id" title="offers_management_staff_name" class="" collapse='formcoll'
            list=$project_offers_staff_list id="id" text="staff_name"}
    {/if}
    {include file='r/file.tpl' name="{$prefix}_file" title="offers_management_file"
        targettype="files" targetdata="project_offers_files"
        collapse='formcoll' class="offer_only"}
</fieldset>

<fieldset class="borderbottom offer_only">
    <legend style="padding-bottom: 0;">{$i.offers_management_withholding_title}</legend>
    {include file='r/radio.tpl' name="{$prefix}_withholding_type" title="offers_management_withholding_type"
        list=$withholding_type_list id="id" text="name"}
    {include file='r/input.tpl' name="{$prefix}_withholding" title="offers_management_withholding"
        add_icons_file='warning' past_span_text='%' class="numberi18n t-small" collapse='formcoll'}
    <p class="formstyle formcoll">
        {include file="r/parts/past_field.tpl"
            add_icons_file='warning_small' past_span_text={$i.offers_management_withholding_info}
            warningsmaller=true}
    </p>
</fieldset>

<fieldset class="borderbottom offer_only">
    <legend style="padding-bottom: 0;">{$i.offers_management_retention_title}</legend>
    {include file='r/radio.tpl' name="{$prefix}_retention_type" title="offers_management_retention_type"
        list=$retention_type_list id="id" text="name"
        collapse='formcoll'}
    {include file='r/input.tpl' name="{$prefix}_retention_years" title="offers_management_retention_years"
        class="numberi18n digits t-small" collapse='formcoll'
        add_icons_file='warning' past_span_text=$i.basic_years}
    {include file='r/input.tpl' name="{$prefix}_retention" title="offers_management_retention"
        class="numberi18n t-small" collapse='formcoll'}
    <p class="formstyle formcoll">
        {include file="r/parts/past_field.tpl"
            add_icons_file='warning_small' past_span_text={$i.offers_management_retention_info}
            warningsmaller=true}
    </p>
</fieldset>

<fieldset class="borderbottom offer_only">
    {include file='r/select.tpl' name="{$prefix}_status" title="offers_management_status" class="required" collapse='formcoll'
        list=$project_offers_status_list id="id" text="name" noempty=TRUE}
    {include file='r/date.tpl' name="{$prefix}_valid_to_date" title="offers_management_valid_to_date" collapse='formcoll' class="dateUS"}

    {include file='r/checkbox.tpl' name="{$prefix}_estimation" title="offers_management_estimation" collapse='formcoll'}
    {include file='r/input_range.tpl' name="{$prefix}_order_probability" title="offers_management_order_probability"
        default="0" min="0" max="100" step="10" collapse='formcoll'
        labelclass="label2" add_icons_file='warning' past_span_text='%'}
</fieldset>

<fieldset class="borderbottom offer_only">
    {include file='r/input.tpl' name="{$prefix}_order_no" title="offers_management_order_no"
        collapse='formcoll' class="" maxlength=40}
    {include file='r/input.tpl' name="{$prefix}_vat_rate" title="offers_management_vat"
        collapse='formcoll' class="numberi18n calculator"}
    {include file='r/date.tpl' name="{$prefix}_order_date" title="offers_management_order_date"
        labelclass='label4' class="dateUS"}
</fieldset>
