<form id="work_area_overview_form" style="" class=""
    action=""  method="POST" enctype="multipart/form-data" onsubmit="">
    <fieldset class="borderbottom">
        {if $has_private_work_area_category eq false}
            <a onclick="work_area_overview.create_private_work_area_category();" class="dialog_make_text_btn ui-corner-all">
                <span class="dialog_make_btn16 ok ui-corner-all"></span>{$i.projectadmin_create_private_work_area_category}</a>
        {elseif $can_masterdata}
            <a href="{site_url url="start/open/masterdatamanagement/index/$xjxcookie/md_work_areas_categories/$has_private_work_area_category/"}"
                onclick="usComm.windowOpen(this.href); return false;"
                class="dialog_make_text_btn ui-corner-all">{$i.projectadmin_edit_work_area_category}</a>
        {/if}
        {if $has_right_admin}
        <br /><a onclick="work_area_overview.add_work_area_project_only();" class="dialog_make_text_btn ui-corner-all">
            <span class="dialog_make_btn16 ok ui-corner-all"></span>{$i.projectadmin_add_work_area_project_only}
        </a>
        {/if}
    </fieldset>
    <fieldset class="noborder" style="margin-top: 10px;">
        {include file='r/hidden.tpl' name="work_area_overview_project_id" default=$work_area_overview_project_id}
        <div>{$i.projectadmin_work_area}:</div>
        <div>{include file='r/select-only.tpl' name="work_area_overview_area" title="projectadmin_work_area" list=$inactive_work_areas_list id="id" text="name" collapse='' class="required" noempty=TRUE multiple=8 style="width:100%"}</div>
        <div>{include file="r_icons/basic_icon.tpl" add_icons_onclick="work_area_overview.save(`$has_private_work_area_category_js`);" add_icons_class="dialog_make_btn16 ok" title="projectadmin_work_area"}</div>
    </fieldset>
    <fieldset class="noborder" style="margin-top: 10px;">
        <table style="width: 100%;">
            <thead>
            <tr>
                <th>{$i.projectadmin_fee_area}</th>
                <th>{$i.projectadmin_work_area}</th>
            </tr>
            </thead>
            <tbody>
            {foreach item="work_area" from=$active_work_areas_list}
            <tr>
                <td>{$work_area->fee_area_name}</td>
                <td>{$work_area->name}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </fieldset>
</form>