<%@ Page Title="" Language="C#" MasterPageFile="~/2ColMaster.Master" AutoEventWireup="true" CodeBehind="ProcessTypesDiagram.aspx.cs" Inherits="ProcessDefinition.ProcessTypesDiagram" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
    <h1>Process metamodel</h1>
    <asp:Literal ID="litDiagram" runat="server" />

    <asp:Literal ID="litMap" runat="server" />

  <div id="sectionDialog" title="Edit section">
                <dp:JqTextBox ID="sectionName" runat="server" AddLineBreak="true" LabelText="Section name" Columns="60" />
                <dp:JqTextBox ID="tutorialText" runat="server" AddLineBreak="true" LabelText="Tailoring instruction" TextBoxMode="MultiLine" Columns="65" />
                <br />
                <label for='dir'>Direction:</label>
                <input type='radio' name='dir' value='in' title='In' />In
                <input type='radio' name='dir' value='out' title='Out'/>Out
                <input type='radio' name='dir' value='inout' title='InOut'/>InOut
                <br />
                <label for='multip'>Multiplicity:</label>
                <input type='radio' name='multip' value='0..1'/>0..1 
                <input type='radio' name='multip' value='0..n'/>0..N 
                <input type='radio' name='multip' value='1..1'/>1..1 
                <input type='radio' name='multip' value='1..n'/>1..N        
                <br />
                <label for='linkToType'>Links to component type:</label>
                <dp:MissingDropDownList ID="ddlProcessType" runat="server" DataSourceID="odsProcessTypes"
                    DataTextField="ProcessTypeName" DataValueField="ProcessTypeId" AppendDataBoundItems="true" CssClass="ddlProcessType">
                    <asp:ListItem Value="-1" Text="Not specified" />
                </dp:MissingDropDownList>
        </div>                   
    <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>
        
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentOptions" runat="server">

        <div>
    <ul class='ui-widget-content'>
        <li class="btn"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span><a href="<%=pd.R.GetReposRoot() %>/Library/ProcessTypes">Back to types</a></li>
    </ul>
        <ul class="ui-widget-content ui-corner-all">
                <li class="btn" id="btnSave"><span class="ui-icon ui-icon-disk"></span><a href="#">Save</a></li>
            </ul>
            
	</div>

</asp:Content>
