<form method="post" action="" id="dynprojectgroup_creator_select_existing_{$dyn_my_id}">
    <fieldset class="ui-widget-header ui-corner-all noborder sepnext">
        {include file='r/select.tpl' name="dynprojectgroup_creator_groups" title="portlet_dynprojectgroup_creator_groups" class='t-mid'
            list=$dyn_projects_groups_with_info id='id' text='fullname'
            filter_extra="onchange=\"openx('portlet', 'dynprojectgroup_creator', 'load_existing', xajax.getFormValues('dynprojectgroup_creator_select_existing_{$dyn_my_id}'), 'dynprojectgroup_creator_{$dyn_my_id}');\""
            add_icons_file="creator_groups_delete"}
    </fieldset>
</form>
<form method="post" action="" id="dynprojectgroup_creator_{$dyn_my_id}">
    <fieldset class="ui-widget-header ui-corner-all noborder sepnext">
        <legend class="ui-widget-header ui-corner-all">{$i.portlet_dynprojectgroup_creator_all}</legend>
        {include file='r/checkbox.tpl' name="dynprojectgroup_creator_all_cost_centres" title="projectadmin_cost_centres" collapse='formcoll'
            filter_extra="onclick=\"$('#dynprojectgroup_creator_`$dyn_my_id` #dynprojectgroup_creator_cost_centre').val('')\""}
        {include file='r/checkbox.tpl' name="dynprojectgroup_creator_all_project_managers" title="projectadmin_project_managers" collapse='formcoll'
            filter_extra="onclick=\"$('#dynprojectgroup_creator_`$dyn_my_id` #dynprojectgroup_creator_project_manager').val('')\""}
    </fieldset>
    <fieldset class="ui-widget-header ui-corner-all noborder sepnext">
        <legend class="ui-widget-header ui-corner-all">{$i.portlet_dynprojectgroup_creator_for}</legend>
        {include file='r/select.tpl' name="dynprojectgroup_creator_cost_centre" title="projectadmin_cost_centre" collapse='formcoll'
            list=$dyn_cost_centres_list id="id" text="name"
            filter_extra="onclick=\"$('#dynprojectgroup_creator_`$dyn_my_id` #dynprojectgroup_creator_all_cost_centres').prop('checked', false)\""}
        {include file='r/select.tpl' name="dynprojectgroup_creator_project_manager" title="projectadmin_project_manager" collapse='formcoll'
            list=$dyn_project_manager_list id="id" text="fullname"
            filter_extra="onclick=\"$('#dynprojectgroup_creator_`$dyn_my_id` #dynprojectgroup_creator_all_project_managers').prop('checked', false)\""}
        <hr />
        {include file='r/checkbox.tpl' name="dynprojectgroup_creator_active_projects_only" title="filter_active_projects_only" default=true}
        {include file='r/datefromto.tpl' name="dynprojectgroup_creator_start_date" title="projectadmin_start_date" class="dateUS"}
        {include file='r/datefromto.tpl' name="dynprojectgroup_creator_end_date" title="projectadmin_end_date" class="dateUS"}
        {include file='r/input-list.tpl' name="dynprojectgroup_creator_project_category" title="projectadmin_project_category" collapse='formcoll' class='t-mid'
            data=$dyn_project_category_list data_text_id='name' data_id_id='name'}
        {include file='r/select.tpl' name="dynprojectgroup_creator_project_phase" title="projectadmin_project_phase" collapse='formcoll' class='t-mid'
            list=$dyn_project_phase_list id='id' text='name'}
        {include file='r/input.tpl' name="dynprojectgroup_creator_purpose" title="projectadmin_purpose" class='t-mid'}
    </fieldset>
    
    <fieldset class="ui-widget-header ui-corner-all noborder sepnext">
        <legend class="ui-widget-header ui-corner-all">{$i.portlet_dynprojectgroup_creator_create}</legend>
        {include file='r/input.tpl' name="dynprojectgroup_creator_nameprfx" title="portlet_dynprojectgroup_creator_nameprfx" 
            class='t-mid' maxlength=50}
        <span onclick="$('#dynprojectgroup_creator_{$dyn_my_id}_info').html('...'); openx('portlet', 'dynprojectgroup_creator', 'create', xajax.getFormValues('dynprojectgroup_creator_{$dyn_my_id}'), 'dynprojectgroup_creator_{$dyn_my_id}');" 
            class="dialog_make_text_btn ui-corner-all">
            <span class="dialog_make_btn16 ok ui-corner-all"></span>{$i.basic_save}
        </span>
    </fieldset>
    
    <div id="dynprojectgroup_creator_{$dyn_my_id}_info"></div>
</form>