<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_DomainAliases, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>

<div class="col-xs-12">
    <div class="card">
        <div class="header">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <asp:LinkButton ID="Btn_GoBack" runat="server" Text="<%$ Resources:Content,String1045 %>" CausesValidation="false"
                 CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row" id="Pnl_Grid" runat="server">
                <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                    <div class="card">
                        <div class="header">
                            <h3><%= Resources.Content.GN00001320%></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_AddDomainAlias" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,SPT002304%>" CausesValidation="false" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12">
                    <asp:GridView ID="Gv_DomainAliases" runat="server" AllowPaging="true" DataSourceID=""
                        CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,SPT002303%>" HeaderStyle-CssClass="col-xs-10" ItemStyle-CssClass="col-xs-10">
                                <ItemTemplate>
                                    <asp:Label ID="Lbl_DomainAliasName" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LB_Edit" runat="server" CssClass="btn btn-primary waves-effect" CommandName="DAEdit"
                                        CausesValidation="false" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                    <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="DARemove"
                                        CausesValidation="false" Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                        TargetControlID="LB_Remove">
                                    </EM:ConfirmButtonExtender>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <%--PagerTemplate Start--%>
                        <PagerTemplate>
                            <EM:Pager ID="Pager1" runat="server" />
                        </PagerTemplate>
                        <%--PagerTemplate End--%>
                    </asp:GridView>
                </div>
            </div>

            <div class="row" id="Pnl_Edit" runat="server">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,SPT002304%>' EnableViewState="false" /></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-2 col-xs-12 row-label">
                                    <label>
                                        *<asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,SPT002303 %>' EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-3 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_DomainAliasName" runat="server"></asp:TextBox>
                                        </div>
                                        <br />
                                        <strong>Host Header: </strong>www etc...
                                    </div>
                                </div>
                                <div class="col-sm-1 col-xs-12">
                                    <asp:Label ID="Label4" runat="server" Text="." Font-Bold="false" EnableViewState="false" />
                                </div>
                                <div class="col-sm-3 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_DomainName" runat="server"></asp:TextBox>
                                            <%--<asp:Label ID="Lbl_DomainName" runat="server" Visible="false"></asp:Label>--%>
                                            <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator3"
                                                ControlToValidate="TxBx_DomainName" ValidationGroup="DA" Display="None">
                                            </asp:RequiredFieldValidator>
                                            <%--<asp:RegularExpressionValidator ID="RE_DomTra" runat="server" ErrorMessage='<%$Resources:Content,String311%>'
                                                SetFocusOnError="True" ControlToValidate="TxBx_DomainName" ValidationGroup="DA"
                                                ValidationExpression="<%$ Resources:Content,REV001 %>"
                                                Display="None"></asp:RegularExpressionValidator>
                                            <EM:FilteredTextBoxExtender ID="FTE_TxBx_DomainName" runat="server" TargetControlID="TxBx_DomainName"
                                                FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars=".-">
                                            </EM:FilteredTextBoxExtender>--%>
                                            <EM:FilteredTextBoxExtender ID="FTE_TxBx_DomainAliasName" runat="server" TargetControlID="TxBx_DomainAliasName"
                                                FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="-">
                                            </EM:FilteredTextBoxExtender>
                                        </div>
                                        <br />
                                        <strong>Domain: </strong>domain.com
                                    </div>
                                </div>
                            </div>
                            <div class="row" style="display: none;">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,SPT002259%>' EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_UserPrimDomDNSZone" Checked="true" runat="server" Text=" " />
                                </div>
                            </div>
                            <div class="row" id="TR_EnableSynch" runat="server" style="display: none;">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,String478 %>' EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_EnableSynch" runat="server" Text=" " />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:ValidationSummary ID="VS_DomailAliases" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                        ShowMessageBox="True" ShowSummary="False" ValidationGroup="DA" />

                                    <asp:Button ID="Btn_DomAliasSave" Text='<%$ Resources:Content,GN0000281%>' class="btn btn-primary waves-effect btnAction" runat="server" ValidationGroup="DA" />
                                    <asp:Button ID="Btn_Cancel" Text="<%$ Resources:Content,GN0000572%>" runat="server" class="btn btn-primary waves-effect" CausesValidation="false" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%--Resources Grid Pannel--%>
<asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
<asp:Panel ID="Panel3" runat="server" CssClass="width-modal-popup-auto" BorderColor="ActiveBorder" BorderStyle="Groove"
    ScrollBars="Auto" Style="display: none">
    <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
</asp:Panel>
<EM:ModalPopupExtender X="150" runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Panel3" TargetControlID="Btn_Display">
</EM:ModalPopupExtender>

<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_DomainAliasName.ClientID%>');
    <%--AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_DomainName.ClientID%>');--%>
</script>