<div id="inforightbtns">
    {if $data->has_hoai}
        {assign var="has_hoai" value='true'}
    {else}
        {assign var="has_hoai" value='false'}
    {/if}
    <span class="dialog_make_btn16 edit mobile_big24 smallbtns ui-corner-all"
        onclick="md_work_packages.open({$data->id}, false, null, {$data->depth}, {$data->is_special}, {$data->rgt}, {$data->lft}, {$has_hoai}, {$data->threshold});"
        title="{$i.basic_edit}"></span>
    <span class="dialog_make_btn16 add smallbtns ui-corner-all"
        onclick="md_work_packages.open('add',{$data->id}, {$data->tree_id}, {$data->depth}, {$data->is_special}, {$data->lft}, {$data->rgt}, {$has_hoai}, {$data->threshold});"
        title="{$i.basic_add}"></span>
    <ul class="functionmenu">
        <li class="ui-corner-all"><span class="ui-widget-header ui-corner-all">{$i.basic_functions}</span>
            <ul>
                {if $data->lft != 1 && (!$has_single_child && isset($has_single_child))}    
                    {include file="r_basic/functionmenuitem.tpl" title=$i.basic_delete
                        icon="delete" action="md_work_packages.delete({$data->id}, {$data->lft}, {$data->rgt});"}
                {/if}
                {if $have_hoai && $data->is_special >= 0 && !$data->has_hoai}
                    {include file="r_basic/functionmenuitem.tpl" title=$i.masterdatamanagement_work_package_add_hoai
                        icon="" action="md_work_packages.add_hoai({$data->id});"}
                {/if}
                {include file="r_basic/functionmenuitem.tpl" title=$i.masterdatamanagement_work_package_add_branch_preset
                    icon="" action="md_work_packages.add_branch_preset({$data->id});"}
            </ul>
        </li>
    </ul>
</div>
<div id="inforight" class="below">
    {include file='r/hidden.tpl' name="work_packages_right_opentask_id" default=$data->id}
    {include file="Masterdatamanagement/work_packages/info_right_table.tpl"}
</div>

    