<%@ Page Language="C#" MasterPageFile="~/2ColMaster.Master" AutoEventWireup="true" CodeBehind="ProjectPlanDefn.aspx.cs" Inherits="ProcessDefinition.ProjectPlanDefn" Title="Create Project" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
<h2><asp:Literal ID="litPageTitle" runat="server" /></h2>
<div id="selectProcess">
    <div class="hBlurb ui-state-highlight">
    Project tailoring allows you to tailor a process for your team, based on your process rules and generate Microsoft Project plans.<br />
    <br />
    To get started:
    <ol>
    <li>Select a process to base your project on and then select 'Choose steps' in the navigation bar.</li>
    <li>Choose the optional steps that you'd like to remove and define iterative steps.</li>
    <li>Name this project.</li>
    <li>Save the project and optionally export to Microsoft Project.</li>
    </ol>
    </div>
            <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
                <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
                    <asp:Literal ID="litTabs" runat="server" />
                </ul>
                <div id="tabsTag" class=" <%=GetTagsClass() %>">
                    <h2>Select process</h2>
                    <dp:JqTextBox ID="txtFilter" runat="server" Columns="40" /><input type="button" id='btnFilter' value="Find" onclick="filterChanged();" class="ui-corner-all ui-state-default dpButton" />
                    <dp:TagProcessList id="procDragTagList" runat="server" UseFrozen="true" />
                </div>
                <div id="tabsStruct" class="ui-tabs-hide"  style="display:none;">
                    <div id="struct"></div>
                </div>
                <asp:Literal ID="litProjectHome" runat="server" />
            </div>  

</div>
<div id="projectName" class='projecName'  style='display:none;'>
    <div class="hBlurb ui-state-highlight" id="projectNameCheck">
        You now need to give the project a name.
    </div>
    <dp:JqTextBox ID="txtProjectPlanName" runat="server" LabelText="Project name" /><button id="btnSaveProjPlan" class="ui-corner-all ui-state-default dpButton" style="display:none;">Save project</button>
    
</div>
<div id="projectTailor" class='projecTailor projectView' style='display:none;'>
    <div class="hBlurb ui-state-highlight">
        Using the process tailoring notes defined in the process, you can now remove optional and iterative steps.
    
    </div>

<div id="projectTailorProcess"></div>
<asp:Literal ID="litPlan" runat="server" EnableViewState="false" />
    <div id="tailorDlg" style="display:none;" class='tailorDlg'>
    <div id="tailorNotes"></div>
    <div id="iterStep" class="stepQ">
    <p>This is an iterative step. Would you like to add the iterations now?</p>
    <button id="btnDefineIter" class="ui-corner-all ui-state-default dpButton">Add iterations</button>
    </div>
    <div id="optStep" class="stepQ">
    <p>This is an optional step. Would you like to remove this step?</p>
    <button id="btnRemove" class="ui-corner-all ui-state-default dpButton">Remove this step</button>
    <button id="btnKeep" class="ui-corner-all ui-state-default dpButton">Keep this step</button>
    </div>
    <div id="optAlternatives" class="stepQ">
    <p>This step has alternatives. Would you like to choose an alternative step now?</p>
    <button id="btnChooseAlternative" class="ui-corner-all ui-state-default dpButton">Choose alternative step</button>
    </div>
    <div id="progressText"></div>
    <div id="progressbar"></div>
    <div class="btnBar">
        <button id="btnPrev" class="ui-corner-all ui-state-default ui-priority-secondary dpButton">Previous</button>
        <button id="btnNext" class="ui-corner-all ui-state-default dpButton">Next</button>
        <button id="btnWizFinish" class="ui-corner-all ui-state-default dpButton" style="display:none;">Finish</button>
    </div>
    </div>
</div>

<div id="iterationDialog" title="Add iterations" style='display:none;'>
<dp:JqTextBox ID="txtIterations" runat="server" LabelText="Add iterations (one per line)" TextBoxMode="MultiLine" Rows="10" />
</div>

<div id="dlgChooseAlternative" title="Choose alternative" style="display:none;">
    <label>Alternative group: </label><label id="lblAltGroup"></label> <br />
    <select id="listAlternatives">
    </select>

</div>


<div id="projectFinish" class='projectFinish' style='display:none;'>
    <div class="hBlurb ui-state-highlight">
        <span id='saveProgress'>Saving project. Please wait...</span>
    </div>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentOptions" runat="server">
    <ul class='ui-widget-content ui-corner-all'>
        <li class="btn">
            <span class="ui-icon ui-icon-arrowreturnthick-1-w"></span><a href='<%=pd.R.CurrentScheme+pd.R.Site %>'>Back to libraries</a></li>
    </ul>
    <ul class='ui-widget-content ui-corner-all'>
        <li class="btn jqa" id="btnSelectProc"><span class="ui-icon ui-icon-carat-1-e"></span><a>Select process</a></li>
        <li class="btn jqa" id="btnDefine" style='display:none;'><span class="ui-icon ui-icon-none"></span><a>Choose steps</a></li>
        <li class="btn jqa" id="btnName" style='display:none;'><span class="ui-icon ui-icon-none"></span><a>Project name</a></li>
        <li class="btn jqa" id="btnFinish" style='display:none;'><span class="ui-icon ui-icon-none"></span><a>Save project</a></li>
        <li class="btn jqa" id="btnGoProjHome" style='display:none;'><span class="ui-icon ui-icon-none"></span><a>Project home</a></li>
        <li class="btn jqa" id="btnGoProjAssign" style='display:none;'><span class="ui-icon ui-icon-none"></span><a>Assign roles</a></li>
    </ul>
    <ul class='ui-widget-content ui-corner-all' id="findQ">
        <li class="btn jqa" id="findQBtn"><span class="ui-icon ui-icon-search"></span><a>Where am I?</a></li>
    </ul>
</asp:Content>
