<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Theme ="eMain" Inherits="site_AccessManagement_Roles_Assign" Title="eSecuritel Role Assign" Culture="auto" UICulture="auto" Codebehind="Assign.aspx.cs" %>
<%@ Register Src="../../../Controls/RoleSubNav.ascx" TagName="SubNav" TagPrefix="uc1" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" Runat="Server">
	<uc1:SubNav ID="eSubNav" runat="server" />
    <h2><asp:Literal ID="m_litHeader" runat="server" Text="<%$ Resources: SecurityManagement, LabelAssignaRoletoUser %>" /></h2>
	<strong class="required"><asp:Label ID="m_lblMessage" runat="server" Visible="False" Text="<%$ Resources: SecurityManagement, LabelUserdoesnothaverighttoassignrole %>"></asp:Label></strong>

    <div>	
        <div class="subpanelheader">
            <img src="~/images/Collapse_13x13.jpg" class="showstate" onclick="expandcontent(this, 'm_pnlHelpTip')"
                alt="contract" />
                <asp:Literal ID="m_litHelpTipHeader" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicHelpTip %>" /></div>
        <div id="m_pnlHelpTip" class="switchcontent">
                <asp:Literal ID="m_litHelpTip1" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicSelectAnOrganizationRole %>" /><br />
                <asp:Literal ID="m_litHelpTip2" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicSelectaRole %>" /><br />
                <asp:Literal ID="m_litHelpFunction" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicBoldThisFunctionAssignRole %>" />
        </div>
	</div>
	<br />

    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" ValidationGroup="validationGroup" HeaderText="<%$ Resources: SecurityManagement, LabelThefollowingitemsneedtobereviewedColon %>" />
	<table class="gvTable" cellpadding="0" cellspacing="0">
		<tr>
			<td align = "right">
                <asp:Label ID="m_lblRoleType" runat="server" Text="<%$ Resources: OrganizationManagement, LabelOrganizationColon %>" Visible="False" ></asp:Label>
                <strong class="required"><asp:Label ID="m_lblRoleTypeRequired" runat="server" CssClass="Required" Text="*" Visible="False"></asp:Label></strong></td>
			<td>
			    <asp:DropDownList ID="m_ddlRoleTypes" runat="server" AutoPostBack="True" Visible="False" OnSelectedIndexChanged="m_ddlRoleTypes_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="m_rvRoleType" runat="server" Text="<%$ Resources: Default, ValidatorText %>" ValidationGroup="validationGroup" ErrorMessage="<%$ Resources: OrganizationManagement, ErrorMessageOrganizationNameorOrganizationTypeNameisRequired %>" ControlToValidate="m_ddlRoleTypes" ToolTip="<%$ Resources: Default, RequiredValidatorText %>"></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td align = "right"><asp:Label ID="m_lblRoleName" runat="server" Text="<%$ Resources: SecurityManagement, LabelRoleNameColon %>" Visible="False" ></asp:Label>
                <strong class="required"><asp:Label ID="m_lblRoleNameRequired" runat="server" CssClass="Required" Text="*" Visible="False"></asp:Label></strong></td>
			<td>
                <asp:DropDownList ID="m_ddlRoles" runat="server" AutoPostBack="True" OnSelectedIndexChanged="m_ddlRoles_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="m_rvName" runat="server" Text="<%$ Resources: Default, ValidatorText %>" ValidationGroup="validationGroup" ErrorMessage="<%$ Resources: SecurityManagement, ErrorMessageRoleNameisRequired %>" ControlToValidate="m_ddlRoles" ToolTip="<%$ Resources: Default, RequiredValidatorText %>"></asp:RequiredFieldValidator></td>
		</tr>
	</table>
	
    <div> 
        <asp:Button ID="m_btnGo" runat="server" Text="<%$ Resources: SecurityManagement, ButtonAssignRole %>" OnClick="m_btnGo_Click" CssClass="pagebutton" />
        <asp:Button ID="m_btnCancel" runat="server" Text="<%$ Resources: Default, ButtonCancel %>" CausesValidation="False" OnClick="m_btnCancel_Click" CssClass="pagebutton" />
    </div> 
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryBottom" runat="server" ValidationGroup="validationGroup" HeaderText="<%$ Resources: SecurityManagement, LabelThefollowingitemsneedtobereviewedColon %>" />
</asp:Content>

