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

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">

    <asp:Panel ID="Pnl_Main" runat="server" DefaultButton="Btn_Save">

        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Literal runat="server" ID="Ltrl_Header" Text="<%$ Resources:Content,strFirewallRule %>" />
                    </h3>
                </div>

                <div class="body">

                    <!-- CUSTOMER -->
                    <div class="row" id="DivCustomer" runat="server">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                *
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl2" Text="<%$ Resources:Content,strCustomer %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="ddlCustomer" AutoPostBack="true" runat="server" />
                            </div>
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="ddlCustomer" InitialValue="-1" Display="None"
                                SetFocusOnError="True" ValidationGroup="addfirewall" />
                        </div>
                    </div>

                    <!-- INTERFACE -->
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                *
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl6" Text="<%$ Resources:Content,strInterface %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="ddlInterface" AutoPostBack="true" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>

                    <!-- DESCRIPTION -->
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                *
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl3" Text="<%$ Resources:Content,strDescription %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="txtDescription" Display="None"
                                SetFocusOnError="True" ValidationGroup="addfirewall" />
                        </div>
                    </div>

                    <!-- ACTION -->
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl4" Text="<%$ Resources:Content,GN0000277 %>" />:</label>
                        </div>

                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="ddlAction" runat="server" CssClass="form-control">
                                    <asp:ListItem Text="Pass" Value="pass" />
                                    <asp:ListItem Text="Block" Value="block" />
                                    <asp:ListItem Text="Reject" Value="reject" />
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>

                    <!-- ENABLED -->
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl5" Text="<%$ Resources:Content,strEnabled %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="chkEnabled" Checked="true" runat="server" />
                        </div>
                    </div>

                    <!-- PROTOCOL -->
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl7" Text="<%$ Resources:Content,SMI0461 %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="ddlProtocol" runat="server" AutoPostBack="true">
                                    <asp:ListItem Text="Any" Value="any" />
                                    <asp:ListItem Text="TCP" Value="tcp" />
                                    <asp:ListItem Text="UDP" Value="udp" />
                                    <asp:ListItem Text="TCP/UDP" Value="tcp/udp" />
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>

                    <!-- SOURCE -->
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                *
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl8" Text="<%$ Resources:Content,SMI1898 %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="ddlSource" runat="server" />
                            </div>
                        </div>
                    </div>

                    <div id="Div_SourcePortRange" runat="server" visible="false">
                        <div class="header">
                            <h3>
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal1" Text="<%$ Resources:Content,SourcePortRange %>" /></h3>
                        </div>

                        <div class="row">
                            <div class="col-sm-2 col-sm-12 row-label">
                                <label>
                                    *
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal2" Text="<%$ Resources:Content,GN0000372 %>" />:</label>
                            </div>
                            <div class="col-sm-2">
                                <div class="form-group">
                                    <asp:DropDownList ID="ddlSourcePortFrom" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>
                                </div>
                            </div>

                            <div class="col-sm-2">
                                <div class="form-group form-float" ID="Div_SourcePortFromCustom" runat="server">
                                    <div class="form-line">
                                        <asp:TextBox ID="txtSourcePortFromCustom" runat="server" Enabled="false" />
                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String456%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>

                            <!-- TO -->
                            <div class="col-sm-1 col-sm-12 row-label">
                                <label>
                                    *
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal3" Text="<%$ Resources:Content,strTo %>" />:</label>
                            </div>
                            <div class="col-sm-2">
                                <div class="form-group">
                                    <asp:DropDownList ID="ddlSourcePortTo" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>
                                </div>
                            </div>

                            <div class="col-sm-2">
                                <div class="form-group form-float" ID="Div_SourcePortToCustom" runat="server">
                                    <div class="form-line">
                                        <asp:TextBox ID="txtSourcePortToCustom" runat="server" Enabled="false" />
                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String456%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-2 col-sm-12 row-label">
                            </div>
                            <div class="col-sm-10 col-sm-12 row-label">
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal7" Text="<%$ Resources:Content,SourcePortRangeNotice %>" />
                            </div>
                        </div>
                    </div>

                    <!-- DESTINATION -->
                    <div class="row">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                *
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl9" Text="<%$ Resources:Content,strDestination %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="ddlDestination" runat="server" />
                            </div>
                        </div>
                    </div>

                    <div id="Div_DestinationPortRange" runat="server" visible="false">
                        <div class="header">
                            <h3>
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal4" Text="<%$ Resources:Content,DestinationPortRange %>" /></h3>
                        </div>

                        <div class="row">
                            <!-- FROM -->
                            <div class="col-sm-2 col-sm-12 row-label">
                                <label>
                                    *
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal5" Text="<%$ Resources:Content,GN0000372 %>" />:</label>
                            </div>
                            <div class="col-sm-2">
                                <div class="form-group">
                                    <asp:DropDownList ID="ddlDestinationPortFrom" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>
                                </div>
                            </div>

                            <div class="col-sm-2">
                                <div class="form-group form-float" ID="Div_DestinationPortFromCustom" runat="server">
                                    <div class="form-line">
                                        <asp:TextBox ID="txtDestinationPortFromCustom" runat="server" Enabled="false" />
                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String456%>" class="form-label"></asp:Label>
                                    </div>
                                </div>

                            </div>

                            <!-- TO -->
                            <div class="col-sm-1 col-sm-12 row-label">
                                <label>
                                    *
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal6" Text="<%$ Resources:Content,strTo %>" />:</label>
                            </div>
                            <div class="col-sm-2">
                                <div class="form-group">
                                    <asp:DropDownList ID="ddlDestinationPortTo" runat="server" AutoPostBack="true">
                                    </asp:DropDownList>
                                </div>
                            </div>

                            <div class="col-sm-2">
                                <div class="form-group form-float" ID="Div_DestinationPortToCustom" runat="server">
                                    <div class="form-line">
                                        <asp:TextBox ID="txtDestinationPortToCustom" runat="server" Enabled="false" />
                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String456%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="row">
                            <div class="col-sm-2 col-sm-12 row-label">
                            </div>
                            <div class="col-sm-10 col-sm-12 row-label">
                                <asp:Literal runat="server" EnableViewState="false" ID="Literal8" Text="<%$ Resources:Content,DestinationPortRangeNotice %>" />
                            </div>
                        </div>
                    </div>

                    <!-- LOG -->
                    <div class="row" runat="server" id="DivLog">
                        <div class="col-sm-2 col-xs-12 row-label">
                            <label>
                                <asp:Literal runat="server" EnableViewState="false" ID="Ltrl1" Text="<%$ Resources:Content,Log %>" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="chkLog" runat="server" />
                        </div>
                    </div>

                    <!-- BUTTONS -->
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_Save" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                Text="<%$ Resources:Content,GN0000281 %>" ValidationGroup="addfirewall" />
                            <asp:Button ID="BtnCancel" runat="server" CssClass="btn btn-primary waves-effect"
                                CausesValidation="false" Text="<%$ Resources:Content,GN0000572 %>" />

                            <asp:ValidationSummary ID="VS_addfirewall_2" runat="server" ShowMessageBox="true" ShowSummary="false"
                                ValidationGroup="addfirewall" HeaderText="<%$Resources:Content,EM000001 %>" />
                        </div>
                    </div>

                </div>
            </div>
        </div>

    </asp:Panel>

</asp:Content>
