<fieldset class="borderbottom">
    {include file='r/hidden.tpl' name="opentasks_edit"}{* What entry do we edit - If empty = add *}
    {include file='r/hidden.tpl' name="opentasks_old_id"}{* On duplicate, it's the ID of the source opentask *}
    {include file='r/hidden.tpl' name="opentasks_module_type"}{* Inoutbox fields *}
    {include file='r/hidden.tpl' name="opentasks_module_id"}{* Inoutbox fields *}
    {include file='r/select-project.tpl' name="opentasks_project" title="opentasks_project" class="is_project required on_change_update ocu-p:opentasks ocu-m:get_work_packages ocu-f:opentasks_work_package_name"
        list=$projects_list id="id" text="project"
        add_icons_file="project" filter_favourite_list=$projects_favourite_list
        collapse='formcoll'}
    {include file='r/select.tpl' name="opentasks_work_package_name" title="opentasks_work_package_name" collapse='formcoll' class="" add_icons_file="work_package_search"}
    {include file='r/textarea.tpl' name="opentasks_purpose" title="opentasks_purpose" class="t-long t-task required" maxlength=240 show_selector_link="true"}
    {include file='r/textarea.tpl' name="opentasks_description" title="opentasks_description" class="t-long t-task t-high" show_selector_link="true"}
    {include file='r/date.tpl' name="opentasks_todo_date" title="opentasks_todo_date" collapse='formcoll' class="dateUS"}
    {include file='r/datetime.tpl' name="opentasks_notify" title="opentasks_notify" collapse='formcoll'}
    {include file='r/date.tpl' name="opentasks_active_from" title="opentasks_active_from" collapse='formcoll'}
    {include file='r/input.tpl' name="opentasks_working_hours" title="opentasks_working_hours" collapse='formcoll'}
</fieldset>
<fieldset class="noborder">
    {include file='r/ajaxselect.tpl' name='opentasks_address' title="opentasks_address"
        add_icons_file="project_participants"
        filter_project_participants_project_field="opentasks_project"
        class="addressselect fulltext_search t-mid" collapse='formcoll'}

    {include file='r/select.tpl' name='opentasks_todo_id' title="opentasks_todo_name" class="" collapse='formcoll'
        list=$opentasks_staff_list id="id" text="staff_name" add_icons_file="add_opentasks_todo"}

    {include file='r/many.tpl' name="opentasks_todo_id_list" title="opentasks_todo_name"
    add_method="opentasks.todo_id_list.add_open" collapse='formcoll'
    class="removeable"}

    {include file='r/radio.tpl' name="opentasks_private_or_mgmt" title="opentasks_private_or_mgmt"
        list=$private_or_mgmt id="id" text="name"}

    {include file='r/radio.tpl' name="opentasks_is_urgent" title="opentasks_is_urgent"
        list=$urgent_list id="id" text="name" collapse='formcoll'}
        
    {include file='r/file.tpl' name="opentasks_msg_file" title="opentasks_msg_file" targettype="files" collapse='formcoll' previewonly=TRUE}    
</fieldset>
        
{include file='Basic/edit_popform_addi.tpl' edit_addi_list=$opentasks_addi_list  
    edit_addi_section='opentasks' edit_addi_target='tasks' edit_addi_collapse='formcoll'}
