{if $working_users}
    <div id="work_packages_working_warning" class="warningsmall ui-corner-all">{$working_users}</div>
{/if}
{$last_depth=0}
<ul class="quick" id="quick_interface_form" data-projectid="{$project_id}">
{foreach item="item" from=$wp_list}{*
    *}{if $last_depth<$item->depth}{*
        *}{for $a=$last_depth; $a<$item->depth; $a++}{*
        *}<ul style="padding-left: 16px;">{*
        *}{/for}{$last_depth=$item->depth}{*
    *}{else if $last_depth>$item->depth}{*
        *}{for $a=$last_depth; $a>$item->depth; $a--}{*
        *}</ul>{*
        *}{/for}{$last_depth=$item->depth}{*
    *}{/if}
    {assign var="work_packages_status" value="work_packages_status_{$item->status}"}
<li>{*
    *}<span class="wp_name" style="width: {540-($item->depth*16)}px;">{*
        *}<span onclick="quick_interface.open_edit('edit', {$item->id});" class="dialog_make_btn16 edit smallbtns ui-corner-all"></span>{*
        *}<span onclick="quick_interface.open_edit('add', {$item->id});" class="dialog_make_btn16 add smallbtns ui-corner-all"></span>{*
        *}<span onclick="quick_interface.add_branch_preset({$project_id}, {$item->id});" class="dialog_make_btn16 add_grey smallbtns ui-corner-all" title="{$i.work_packages_add_branch_preset}"></span>{*
        *}{if $item->is_deleteable}<span onclick="quick_interface.work_package_remove_or_change_dialog({$project_id}, {$item->id});" class="dialog_make_btn16 delete smallbtns ui-corner-all"></span>{/if}{*
        *}{$item->wp_number} {$item->name}</span>{*
    *}<span class="wp_status">{$i.$work_packages_status}</span>{*
    *}<span class="wp_csn">{$item->cost_centre_name}</span>{*
*}</li>{*
*}{/foreach}{*
*}{for $a=$last_depth; $a>0; $a--}{*
*}</ul>{*
*}{/for}{*
*}</ul>
