<fieldset class="noborder">
    {include file='r/hidden.tpl' name="mailoutbox_edit"}{* What entry do we edit - If empty = add *}
    {include file='r/hidden.tpl' name="mailoutbox_set_correspondence"}{* Set correspondence *}
    {include file='r/hidden.tpl' name="mailoutbox_set_delivery_note"}{* Set delivery note *}
    {include file='r/hidden.tpl' name="mailoutbox_email_allocation_id"}{* Set ID for email allocation *}
    {include file='r/hidden.tpl' name="mailoutbox_email_allocation_size"}{* Size of mail *}
    {include file='r/checkbox.tpl' name="mailoutbox_delete_emls" title=$i.inoutbox_delete_emls_after_allocation default=false labelclass="label2"}
    {include file='r/select-project.tpl' name="mailoutbox_project" title="inoutbox_project" class="is_project required on_change_update ocu-p:mailoutbox ocu-m:get_work_packages ocu-f:mailoutbox_work_package_name"
        list=$projects_list id="id" text="project" collapse='formcoll'
        add_icons_file="project" filter_favourite_list=$projects_favourite_list}
    {include file='r/datetime.tpl' name="mailoutbox_date" title="inoutbox_date_out" collapse='formcoll'}
</fieldset>

<fieldset class="noborder">
    {include file='r/input.tpl' name="mailoutbox_no" title="inoutbox_no" collapse='formcoll' class="t-mid" maxlength='100'
        add_icons_file="number_generation" ng_project_id="mailoutbox_project" ng_subject="Postausgang/Outbox"}
    {include file='r/input.tpl' name="mailoutbox_outbox_index" title="inoutbox_index" collapse='formcoll' class="" maxlength='20'}
    
    {include file='r/textarea.tpl' name="mailoutbox_content" title="inoutbox_content" class="t-long midheight" rows="20"}
    
    {include file='r/select.tpl' name="mailoutbox_dispatch_mode" title="inoutbox_dispatch_mode" list=$dispatch_modes id="id" text="name" collapse='formcoll' class="required"}
    {include file='r/select.tpl' name="mailoutbox_staff" title="inoutbox_staff" list=$staff_list id="id" text="staff_name" collapse='formcoll' class=""}
    {include file='r/select.tpl' name="mailoutbox_work_package_name" title="inoutbox_work_package" class="" collapse='formcoll'}
    
    {include file='r/many.tpl' name="mailoutbox_bcc" title="inoutbox_recipient"
        add_method="mailoutbox.bcc.add_open"
        class="removeable required sortable top_is_main"}        
    
    {include file='r/file.tpl' name="mailoutbox_attached_file" title="inoutbox_attached_file" targettype="files" targetdata="temp" collapse='formcoll'}
    
    {include file='r/radio.tpl' name="mailoutbox_security" title="inoutbox_security"
        list=$security id="id" text="name" class="required" collapse='formcoll'}    
</fieldset>

{include file='Basic/edit_popform_addi.tpl' edit_addi_list=$mailoutbox_addi_list  
    edit_addi_section='mailoutbox' edit_addi_target='outbox' edit_addi_collapse='formcoll'}
