<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true" Theme ="eMain" Inherits="site_AccessManagement_Roles_Add" Title="eSecuritel Role Add" Culture="auto" UICulture="auto" Codebehind="Add.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">
    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>    
	<uc1:SubNav ID="eSubNav" runat="server" />
    <h2><asp:Literal ID="m_litHeader" runat="server" Text="<%$ Resources: SecurityManagement, LabelCreateaNewRole %>" /></h2>
	<strong class="required"><asp:Label ID="m_lblMessage" runat="server" Visible="False" Text="<%$ Resources: SecurityManagement, LabelUserdoesnothaverighttoaddrole %>"></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, LabelItalicCheckMapFromExistingRole %>" /><br />
                <asp:Literal ID="m_litHelpTip2" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicSelectAnOrganizationOrOrganizationTypeNewRole %>" /><br />
                <asp:Literal ID="m_litHelpTip3" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicSelectaRole %>" /><br />
                <asp:Literal ID="m_litHelpFunction" runat="server" Text="<%$ Resources: SecurityManagement, LabelItalicBoldThisFunctionWillaNewRole %>" />
        </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 colspan="2">
                <asp:CheckBox ID="m_ckMapExistingRole" runat="server" Text="<%$ Resources: SecurityManagement, LabelMapfromExistingRoleQuestion %>" AutoPostBack="True" OnCheckedChanged="m_ckMapExistingRole_CheckedChanged" /></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td align = "right">
                <asp:Label ID="m_lblName" runat="server" Text="<%$ Resources: SecurityManagement, LabelRoleNameColon %>"></asp:Label>
                <strong class="required"><asp:Label ID="m_lblNameRequired" runat="server" Text="*"></asp:Label></strong></td>
			<td>
                <asp:TextBox ID="m_txtName" Width="200px" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="m_rvName" runat="server" ControlToValidate="m_txtName" Text="<%$ Resources: Default, ValidatorText %>" ValidationGroup="validationGroup" ErrorMessage="<%$ Resources: SecurityManagement, ErrorMessageRoleNameisRequired %>" ToolTip="<%$ Resources: Default, RequiredValidatorText %>" ></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
		    <td align = "right">
			    <asp:Label ID="m_lblRoleTypeSelect" runat="server" Text="<%$ Resources: SecurityManagement, LabelAddRoleForColon %>" Visible="False" ></asp:Label></td>
			<td>
                <asp:RadioButtonList ID="m_rblRoleType" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="m_rblRoleType_SelectedIndexChanged" Visible="False">
                </asp:RadioButtonList></td>
		</tr>
		<tr>
			<td align = "right">
			    <asp:Label ID="m_lblRoleType" runat="server" Text="<%$ Resources: SecurityManagement, LabelRoleTypeColon %>" Visible="False" ></asp:Label>
			    <strong class="required"><asp:Label ID="m_lblRoleTypeRequired" runat="server" Text="*" Visible="False"></asp:Label></strong></td>
			<td>
                <asp:DropDownList ID="m_ddlRoleTypes" runat="server" Visible="False" AutoPostBack="True" 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_lblRoles" runat="server" Text="<%$ Resources: SecurityManagement, LabelExistingRoleColon %>" Visible="False" ></asp:Label>
                <strong class="required"><asp:Label ID="m_lblRolesRequired" runat="server" CssClass="Required" Text="*" Visible="False"></asp:Label></strong></td>
			<td>
			    <asp:DropDownList ID="m_ddlRoles" runat="server" Visible="False" AutoPostBack="True" OnSelectedIndexChanged="m_ddlRoles_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="m_rvRole" runat="server" Text="<%$ Resources: Default, ValidatorText %>" ValidationGroup="validationGroup" ErrorMessage="<%$ Resources: SecurityManagement, ErrorMessageRoleNameCopyingfromisRequired %>" ControlToValidate="m_ddlRoles" ToolTip="<%$ Resources: Default, RequiredValidatorText %>" ></asp:RequiredFieldValidator></td>
		</tr>
	</table>
    
    <div> 
        <asp:Button ID="m_btnGo" runat="server" Text="<%$ Resources: SecurityManagement, ButtonCreateRole %>" 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" HeaderText="<%$ Resources: SecurityManagement, LabelThefollowingitemsneedtobereviewedColon %>" ValidationGroup="validationGroup" />
</asp:Content>
