<form onsubmit="return false;" action="" id="reassign_work_package_selectto" class="bigform">

{include file='Work_packages/reassign_work_package/warn_remove.tpl'}
{include file='r/hidden.tpl' name="to_wp_wp_id" default=$wp_id}
    
    <fieldset class="noborder">
        <h3>{$i.masterdatamanagement_select_work_package_to}:</h3>
    </fieldset>
    <fieldset class="bordertop sepnext">
        <legend>{$i.masterdatamanagement_wp_data}</legend>
        {if $usage.warn && $usage.has_offers>0}{$i.masterdatamanagement_remove_warn_offer_data}<br />{/if}

        <br style="clear:both;" />
        {include file='r/select.tpl' name="to_wp_debit" title="masterdatamanagement_new_work_package"
            list=$work_packages id='id' text='full_name' labelclass="label2" class="required"}
    </fieldset>
    {if !$has_only_sg}
        {if $usage.workinput}
            <fieldset class="bordertop sepnext">
                <legend>{$i.basic_workinput}</legend>
                {if $usage.times>0}
                    {include file='r/view.tpl' name="work_package_entries_times" title="masterdatamanagement_entries_times"
                        class="numberi18n" default=$usage.times}
                    {if $usage.times_deducted>0}
                        {include file='r/view.tpl' name="work_package_entries_times_deducted" title="masterdatamanagement_deducted"
                            class="numberi18n" default=$usage.times_deducted}
                    {/if}
                    <br style="clear:both;" />
                {/if}

                {if $usage.travels>0}
                    {include file='r/view.tpl' name="work_package_entries_travels" title="masterdatamanagement_entries_travel"
                        class="numberi18n" default=$usage.travels}
                    {if $usage.travels_deducted>0}
                        {include file='r/view.tpl' name="work_package_entries_travels_deducted" title="masterdatamanagement_deducted"
                            class="numberi18n" default=$usage.travels_deducted}
                    {/if}
                    <br style="clear:both;" />
                {/if}

                {if $usage.extras>0}
                    {include file='r/view.tpl' name="work_package_entries_extras" title="masterdatamanagement_entries_extra"
                        class="numberi18n" default=$usage.extras}
                    {if $usage.extras_deducted>0}
                        {include file='r/view.tpl' name="work_package_entries_extras_deducted" title="masterdatamanagement_deducted"
                            class="numberi18n" default=$usage.extras_deducted}
                    {/if}
                    <br style="clear:both;" />
                {/if}

                <br style="clear:both;" />
                {include file='r/select.tpl' name="to_wp_workinput" title="masterdatamanagement_new_work_package"
                    list=$work_packages id='id' text='full_name' labelclass="label2" class="required"}
            </fieldset>
        {/if}

        {if $usage.fees_expenses}
            <fieldset class="bordertop sepnext">
                <legend>{$i.masterdatamanagement_fees_expenses}</legend>
                {if $usage.externalexpenses_merged>0}
                    {include file='r/view.tpl' name="masterdatamanagement_entries_externalexpenses" title="basic_externalexpenses"
                        class="numberi18n" default=$usage.externalexpenses_merged}
                {/if}
                {if $usage.fees_merged>0}
                    {include file='r/view.tpl' name="masterdatamanagement_entries_fees" title="basic_feeadmin"
                        class="numberi18n" default=$usage.fees_merged}
                {/if}

                <br style="clear:both;" />
                {include file='r/select.tpl' name="to_wp_fees_expenses" title="masterdatamanagement_new_work_package"
                    list=$work_packages id='id' text='full_name' labelclass="label2" class="required"}
            </fieldset>
        {/if}

        {if $usage.other}
            <fieldset class="bordertop sepnext">
                <legend>{$i.masterdatamanagement_other}</legend>
                {if $usage.attendance_clock>0}
                    {include file='r/view.tpl' name="work_package_entries_timelogging" title="basic_timelogging"
                        class="numberi18n" default=$usage.attendance_clock}
                {/if}
                {if $usage.inbox>0}
                    {include file='r/view.tpl' name="work_package_entries_inbox" title="masterdatamanagement_entries_inbox"
                        class="numberi18n" default=$usage.inbox}
                {/if}
                {if $usage.outbox>0}
                    {include file='r/view.tpl' name="work_package_entries_outbox" title="masterdatamanagement_entries_outbox"
                        class="numberi18n" default=$usage.outbox}
                {/if}
                {if $usage.correspondence>0}
                    {include file='r/view.tpl' name="work_package_entries_correspondence" title="basic_correspondence"
                        class="numberi18n" default=$usage.correspondence}
                {/if}

                <br style="clear:both;" />
                {include file='r/select.tpl' name="to_wp_other" title="masterdatamanagement_new_work_package"
                    list=$work_packages id='id' text='full_name' labelclass="label2" class="required"}
            </fieldset>
        {/if}
    {/if}
</form>
