<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_MIMETypes, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" 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">
                <div class="col-xs-12">
                    <div class="row" id="Pnl_MIMETypes" 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_AddNewType" runat="server" Text="<%$ Resources:Content,SMI0569%>" class="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12">
                            <asp:GridView ID="GV_MIMETypes" runat="server" DataSourceID="" CssClass="table table-bordered table-striped table-hover"
                                AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                <Columns>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000220%>" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Extension" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SPT001063%>" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_AssociatedType" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001320%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Edit" runat="server" CommandName="MIMEEdit" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                            <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="MIMERemove" 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>
                            </asp:GridView>
                        </div>
                    </div>

                    <div class="row" id="pnl_AddNewMIME" runat="server">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.SMI0569%></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,GN0000220%>" EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_AssExt" runat="server"></asp:TextBox>

                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_AssExt" runat="server" ControlToValidate="TxBx_AssExt" Display="None" ValidationGroup="MIME" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationGroup="MIME"
                                                        SetFocusOnError="true" ControlToValidate="TxBx_AssExt" runat="server" ValidationExpression="^\.([A-Za-z0-9]+)$" Display="None" ErrorMessage='<%$Resources:Content,String313%>'></asp:RegularExpressionValidator>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_AssExt" Display="None" ValidationGroup="MIME" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" 
                                                    TargetControlID="TxBx_AssExt" FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="." />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">(Example: .FLV)</div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,SPT001063%>" EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_ContentType" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_ContentType" runat="server" ValidationGroup="MIME" ControlToValidate="TxBx_ContentType"
                                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_AssExt" Display="None" ValidationGroup="MIME" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ValidationGroup="MIME"
                                                        SetFocusOnError="true" ControlToValidate="TxBx_ContentType" runat="server" ValidationExpression="^[0-9A-Za-z]+(/[A-Za-z0-9]+)$" Display="None" ErrorMessage='<%$Resources:Content,String314%>'></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">(Example: text/plain)</div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_Save" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" ValidationGroup="MIME" />
                                            <asp:Button ID="Btn_Cancel" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>" CausesValidation="false" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <asp:ValidationSummary ID="VS_MIME" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                        ShowMessageBox="True" ShowSummary="False" ValidationGroup="MIME" />
                </div>
            </div>
        </div>
    </div>
</div>

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