<form id="correspondence_new_from_file_dialog_form" action="">
    <fieldset class="noborder">
        {$my_classes = 'is_project required'}
        {if $correspondence_use_work_package}
            {$my_classes = '`$my_classes` on_change_update ocu-p:correspondence ocu-m:get_work_packages ocu-f:correspondence_nff_work_package'}
        {/if}
        {include file='r/select-project.tpl' name="correspondence_nff_project" title="correspondence_project"
            class=$my_classes
            list=$projects_list id="id" text="project"
            add_icons_file="project" filter_favourite_list=$projects_favourite_list}

        {if $correspondence_use_work_package}
            {include file='r/select.tpl' name="correspondence_nff_work_package" title="correspondence_work_package_name"}
        {/if}

        {include file='r/input-corresondence_type.tpl' name="correspondence_nff_type" title="correspondence_type" class="required" list=$types_list}

        {include file='r/ajaxselect.tpl' name='correspondence_nff_receiver' title="correspondence_receiver"
            class="addressselect fulltext_search t-mid"
            add_icons_file="project_participants"
            filter_project_participants_project_field="correspondence_nff_project"}
    </fieldset>
    <fieldset class="bordertop">
        {include file='r/file-only.tpl' name="correspondence_nff_file_upload" targettype="files" targetdata="corr_nff"}
        <p id="correspondence_nff_file_upload__no">
            <span style="font-size:64px; padding-left:30px;">&#9757;</span>
        </p>
    </fieldset>
    <fieldset class="bordertop" id="correspondence_nff_result">
    </fieldset>
</form>