<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InsertProcessLink.aspx.cs"
    Inherits="ProcessDefinition.EditorModals.InsertProcessLink" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Insert Process Link</title>
    <script src="../Scripts/jquery-1.6.3.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script src="../Scripts/ProcessSelection.js" type="text/javascript"></script>
    <script src="../Scripts/ProcessTagBrowser.js" type="text/javascript"></script>
    <script src="../Scripts/ProcessSelectionDlg.js" type="text/javascript"></script>

    <dp:CustomerUserCommandScriptMce ID="cScript" runat="server" />
    
</head>
<body class='<%=DevProcess.Common.Utils.HtmlHelper.BodyClass(Page.Request) %>'>
    <form id="form1" runat="server">
     <div id="procSelTabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
        <%--<span class='selectAndReturn ui-corner-all'>
            <span class='showHideStepToggle whiteHilightedIcon ui-icon-arrowreturnthick-1-w''></span>
            <span id='showHideStepText'>Select</span>
        </span>--%>
            <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
                <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabsSelExistingItm">Existing</a></li>
                <li class="ui-state-default ui-corner-top"><a href="#tabsSelNewItm">New</a></li>
            </ul>
        <div id="tabsSelExistingItm" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
            <input type="button" value="Insert Selected Processes" class="ui-corner-all ui-state-default dpButton selectAndReturn" />
            <p>
                <dp:JqTextBox LabelText="Filter" ID="txtFilter" runat="server" AddLineBreak="false" Columns="30" Watermark="Filter..." />
                <span style="white-space:nowrap;"><span id="chkStepUseFtSearch" class="stcheck">Full text</span>
                <span style="white-space:nowrap;"><span id="chkFilterToType" class="stcheck"></span>

            </p>
            <div id="procSelectScroll">
                <dp:SelectableTagProcessList ID="procSelectList" runat="server" />
            </div>
        </div>
        <div id="tabsSelNewItm" class="ui-tabs-panel ui-widget-content ui-corner-bottom">

    <asp:ObjectDataSource ID="odsProcessTypes" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetProcessTypes" TypeName="DevProcess.ProcessDefinitionService.ProcessDefinitionManager">
        <SelectParameters>
            <asp:Parameter Name="repositoryName" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
            <label>New type:</label>
        <dp:MissingDropDownList ID="ddlProcessType" runat="server" DataSourceID="odsProcessTypes"
            DataTextField="ProcessTypeName" DataValueField="ProcessTypeId" AppendDataBoundItems="true">
        </dp:MissingDropDownList>
            <br />
            <label>New items:</label>
            <dp:JqTextBox  TextBoxMode="MultiLine" ID="txtNewProcess" runat="server" AddLineBreak="false" Columns="30" Watermark="New item..." />
            <br />
            <label>Tags:</label>
            <dp:JqTextBox  TextBoxMode="MultiLine" ID="txtTags" runat="server" AddLineBreak="false" Columns="30" Watermark="Tags..." />
            <br />
            <label></label><input type="button" value="Insert New Items" class="ui-corner-all dpButton createAndReturn" id="btnCreateAndReturn"/>
        </div>
    </div>
    </form>
</body>
</html>
