<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="HelpDesk_AddDepartment, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">

    <ajax:UpdatePanel ID="AP1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_add">
                <div class="col-xs-12">
                    <div class="card">

                        <div class="body">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.SM400003%>                                                                                                                                
                                    </h3>
                                </div>
                                <div class="body">

                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            *
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000280%>" EnableViewState="false" />:
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Title" MaxLength="250" Width="80%" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator1" ValidationGroup="add"
                                                        ControlToValidate="TxBx_Title" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            *
                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false" />:
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="form-group">
                                                <asp:TextBox ID="TxBx_Description" MaxLength="1500" Height="100px" TextMode="MultiLine"
                                                    Rows="8" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator3" ValidationGroup="add"
                                                    ControlToValidate="TxBx_Description" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            *
                            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,GN0000417%>" EnableViewState="false" />:
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_FromEmail" MaxLength="250" Width="45%" runat="server"></asp:TextBox></td>
                        <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator4" ValidationGroup="add"
                            ControlToValidate="TxBx_FromEmail" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            *
                            <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,GN00001245%>" EnableViewState="false" />:
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_FromName" MaxLength="250" Width="45%" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator5" ValidationGroup="add"
                                                        ControlToValidate="TxBx_FromName" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            *
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000594%>" EnableViewState="false" />:
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_InactivityHours"  Text="<%$ Resources:Content,GN0000665%>" runat="server" MaxLength="2"></asp:TextBox>
                                                    <EM:FilteredTextBoxExtender ID="FT1" FilterType="Numbers,Custom" ValidChars="0123456789"
                                                        TargetControlID="TxBx_InactivityHours" runat="server" />
                                                    <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator2" ValidationGroup="add"
                                                        ControlToValidate="TxBx_InactivityHours" runat="server" ErrorMessage='' SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN0000642%>" EnableViewState="false" />:
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="form-group">
                                                <asp:CheckBox ID="CB_IsInternal" runat="server" Text=" " />&nbsp; (<asp:Literal ID="Literal5"
                                                    runat="server" Text="<%$ Resources:Content,DGN1110139%>" />)
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000605%>" EnableViewState="false" />:
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="form-group">
                                                <asp:RangeValidator ID="RangeValidator1" Display="none" Type="Integer" MinimumValue="0"
                                                    MaximumValue="60000" runat="server" ValidationGroup="add" ControlToValidate="TxBx_InactivityHours"
                                                    SetFocusOnError="true" ErrorMessage='<%$ Resources:Content,GN0000604 %>'></asp:RangeValidator>
                                                <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationGroup="add"
                                                    ControlToValidate="TxBx_FromEmail" runat="server" ValidationExpression="<%$ Resources:MPRegex,EmailAddress%>"
                                                    SetFocusOnError="true" Display="None" ErrorMessage='<%$ Resources:Content,GN0000592 %>'>
                                                </asp:RegularExpressionValidator>--%>
                                                <asp:ListBox SelectionMode="Multiple" Height="90px" ID="LstBx_AdminAccess" runat="server" CssClass="ms"></asp:ListBox></td>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <br />
                            <div>

                                <asp:Button ID="Btn_add" runat="server" SkinID="saveButton" ValidationGroup="add"
                                    Text='<%$ Resources:Content,GN0000281 %>' CssClass="btn btn-primary btnAction" />
                                <asp:Button ID="Btn_Back" CausesValidation="false" SkinID="cancelButton" runat="server"
                                    Text='<%$ Resources:Content,GN0000572 %>' CssClass="btn btn-primary" />
                            </div>
                        </div>
                    </div>
                    <br />
                </div>
            </asp:Panel>
        </ContentTemplate>
    </ajax:UpdatePanel>
<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FT1.ClientID%>');
</script>
</asp:Content>
<%-- ////// ///// ---- Links  and Page Tracking Info Section ---- \\\\\ \\\\\\ --%>
