<%@ Page Title="Project Roles" Language="C#" MasterPageFile="~/2ColMaster.Master" AutoEventWireup="true" CodeBehind="ProjectRoles.aspx.cs" Inherits="ProcessDefinition.ProjectRoles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">

<asp:ObjectDataSource ID="odsProjectRoles" runat="server"
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetProjectRoleAssignments"
    TypeName="DevProcess.ProcessDefinitionService.ProcessDefinitionManager">
    <SelectParameters>
        <asp:Parameter Name="projectPlanId" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

<h1>Assign Project Roles</h1>

<p class="hBlurb ui-state-highlight">The users shown as assigned to a task below may not be the only users assigned to the task.  We are only showing users assigned to tasks by role.</p>

<div id="assnProjRoles">
            <asp:ListView ID="lstProjectRoles" runat="server" ItemPlaceholderID="itemList" EnableViewState="False" DataSourceID="odsProjectRoles" >
                <LayoutTemplate>
                    <asp:PlaceHolder id="itemList" runat="server"/>
                    <br class='clear'/>
                    </div>
                    </div>
                </LayoutTemplate>

                <ItemTemplate>

                    <%# AddPanelIfTypeChanged() %>

                    
                    <%#DevProcess.Common.Utils.StringHelper.Format("<span class='roleTask taskLoading' taskId='{2}'><a href='{3}/Project/{1}/Framed/{2}' target='roleTaskPreview'>{0:multilinenourl}</a><ul class='selAssignedTo'></ul><br class='clear'/></span>", Eval("TaskName"), GetPlanId(), Eval("ProjectPlanTaskId"),pd.R.GetReposRoot())%>

                </ItemTemplate>

                <EmptyDataTemplate>
                </EmptyDataTemplate>
            </asp:ListView>

    <div style='display:none;' class='assignTask ui-corner-all' id='assignTaskDlg'>
    <dp:JqTextBox runat="server" ID="txtSendTo" AddLineBreak="true" Columns="42" LabelText="Assign to"/>
    <ul id='selSendTo'></ul>
    <br class='clear' />
    <dp:JqTextBox runat="server" ID="txtComments" AddLineBreak="true" Columns="42" TextBoxMode="MultiLine" LabelText="Comments" Watermark="Enter notes on how this task is to to be performed." />
    <p style="text-align:right;margin-right:10px;margin-top:5px;">
        <input type="button" id='btnAssignTaskOk' value="Assign" class="ui-corner-all ui-state-default dpButton" style='display:none;' />
        <input type="button" id='btnAssignTaskCancel' value="Cancel" class="ui-corner-all ui-state-default ui-priority-secondary dpButton" />
    </p>
    </div>

</div>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentOptions" runat="server">
    <ul class='ui-widget-content'>
        <li class="btn"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span><a href='./Home'>
            Back to project</a></li>
    </ul>
</asp:Content>
