<fieldset class="borderbottom">
    {include file='r/hidden.tpl' name="work_package_edit"}{* What entry do we edit - If empty = add *}

    {include file='r/input.tpl' name="work_package_number" title="work_packages_number"}
    {include file='r/input.tpl' name="work_package_name" title="work_packages_name" class="required t-mid"}
    {include file='r/input.tpl' name="work_package_name_origtext" title="masterdatamanagement_origtext" class="t-mid" labelclass="label2" readonly="true"}
</fieldset>
<fieldset class="borderbottom">
    {include file='r/select.tpl' title="work_packages_tag"
        name="work_package_tag" filter_extra='onchange="$(\'#work_package_name\').filter(function(){return !this.value}).val( $(this).find(\'option:selected\').data(\'extra\') )"'
        list=$work_packages_tags id="id" text="name" mapdata="wp_name" labelclass="label1"}
    {if count($cost_centres) > 0}
        {include file='r/select.tpl' title="work_packages_cost_centre"
            name="work_package_cost_centre" list=$cost_centres id="id" text="name" labelclass="label1"}
    {/if}
    {include file='r/select.tpl' title="basic_status"
        name="work_package_status" list=$work_packages_status_list 
        id="id" text="name" noempty=TRUE labelclass="label1"}
</fieldset>
<fieldset class="borderbottom">
    {include file='r/textarea.tpl' name="work_package_description" title="work_packages_description" class="t-mid" labelclass="label1"}
</fieldset>

<fieldset class="borderbottom">
    {include file='r/checkbox.tpl' name="work_package_is_purpose_required"
        title="work_packages_is_purpose_required" collapse='' value="FALSE" labelclass="label2"}
</fieldset>
<fieldset class="work_package_threshold_span noborder">
    {include file='r/input.tpl' name="work_package_threshold" 
        title="work_packages_threshold_warning" default="{if isset($item->threshold)}{$item->threshold*100}{else}0{/if}" class="numberi18n t-smaller" 
        add_icons_file='warning' past_span_text='%' labelclass="label2"}
</fieldset>
