<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="HelpDesk_EditDept, 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>

            <div>
                <asp:Panel ID="Pnl_Edit" runat="server" DefaultButton="Btn_Edit">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="body">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <%= Resources.Content.SM400004%>                                                                                                                                 
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                *
                            <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000280%>" />:
                                            </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="90%" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ValidationGroup="editdept" Display="None" ID="RequiredFieldValidator1"
                                                            ControlToValidate="TxBx_Title" runat="server" ErrorMessage=''></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" EnableViewState="false" Text="<%$ Resources:Content,GN0000597%>" />:
                                            </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="7" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ValidationGroup="editdept" Display="None" ID="RequiredFieldValidator3"
                                                        ControlToValidate="TxBx_Description" runat="server" ErrorMessage=''></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                *
                            <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000417%>" />:
                                            </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 ValidationGroup="editdept" Display="None" ID="RequiredFieldValidator4"
                                    ControlToValidate="TxBx_FromEmail" runat="server" ErrorMessage=''></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" EnableViewState="false" Text="<%$ Resources:Content,GN00001245%>" />:
                                            </div>

                                            <div class="col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:RequiredFieldValidator ValidationGroup="editdept" Display="None" ID="RequiredFieldValidator5"
                                                            ControlToValidate="TxBx_FromName" runat="server" ErrorMessage=''></asp:RequiredFieldValidator><td>
                                                                <asp:TextBox ID="TxBx_FromName" MaxLength="250" Width="45%" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                *
                            <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000594%>" />:
                                            </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" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="clearfix">
                                                <asp:RequiredFieldValidator ValidationGroup="editdept" Display="None" ID="RequiredFieldValidator2"
                                                    ControlToValidate="TxBx_InactivityHours" runat="server" ErrorMessage=''></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000642%>" />:
                                            </div>

                                            <div class="col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_IsInternal" runat="server" Text=" " />
                                                    (<asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110139%>" />)
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <asp:RangeValidator ID="RangeValidator1" Display="none" Type="Integer" MinimumValue="0"
                                                    MaximumValue="60000" runat="server" ControlToValidate="TxBx_InactivityHours"
                                                    SetFocusOnError="true" ErrorMessage='<%$ Resources:Content,GN0000604 %>' ValidationGroup="editdept"></asp:RangeValidator>
                                                <asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000605%>" />:
                                            </div>

                                            <div class="col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="TxBx_FromEmail"
                                                        runat="server" ValidationExpression="<%$ Resources:MPRegex,EmailAddress%>"
                                                        SetFocusOnError="true" Display="None" ErrorMessage='<%$ Resources:Content,GN0000592 %>'
                                                        ValidationGroup="editdept"></asp:RegularExpressionValidator>--%>
                                                    <asp:ListBox SelectionMode="Multiple" Height="90px" ID="LstBx_AdminAccess" runat="server" CssClass="ms"></asp:ListBox>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div>
                                    <div class="clearfix">
                                        <asp:ValidationSummary ValidationGroup="editdept" ID="ValidationSummary1" HeaderText="<%$ Resources:Content,EM000001%>"
                                            ShowSummary="false" ShowMessageBox="true" runat="server" />
                                    </div>
                                    <asp:Button ID="Btn_Edit" runat="server" SkinID="saveButton" Text='<%$ Resources:Content,GN0000281 %>'
                                        ValidationGroup="editdept" CssClass="btn btn-primary btnAction" />
                                    <asp:Button ID="Btn_Back" CausesValidation="false" SkinID="backButton" runat="server"
                                        Text='<%$ Resources:Content,GN0000483 %>' CssClass="btn btn-primary" />
                                </div>
                            </div>
                        </div>
                        <br />
                    </div>
                </asp:Panel>
            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FT1.ClientID%>');
    </script>
</asp:Content>
