<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ServersAddServer.ascx.cs"
    Inherits="SolidCP.Portal.ServersAddServer" %>
<%@ Register Src="UserControls/ServerPasswordControl.ascx" TagName="ServerPasswordControl" TagPrefix="uc1" %>
<%@ Register Src="UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport"
    TagPrefix="scp" %>
<scp:EnableAsyncTasksSupport id="asyncTasks" runat="server" />
<asp:Panel ID="ServersAddServerPanel" runat="server" DefaultButton="btnAdd">
    <div class="panel-body form-horizontal">
        <table>
            <tr>
                <td class="SubHead" style="width: 150px;">
                    <asp:Label ID="lblServerName" runat="server" meta:resourcekey="lblServerName"></asp:Label>
                </td>
                <td class="Normal">
                    <asp:TextBox ID="txtName" runat="server" CssClass="Huge" Width="300px">New Server</asp:TextBox>
                    <asp:RequiredFieldValidator ID="valServerName" runat="server" ErrorMessage="*" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="SubHead">
                    <asp:Label ID="lblServerUrl" runat="server" meta:resourcekey="lblServerUrl"></asp:Label>
                </td>
                <td class="Normal">
                    <asp:TextBox ID="txtUrl" runat="server" CssClass="NormalTextBox" Width="300px">http://127.0.0.1:9003</asp:TextBox>
                    <asp:RequiredFieldValidator ID="valServerUrl" runat="server" ErrorMessage="*" ControlToValidate="txtUrl"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="SubHead" valign="top">
                    <asp:Label ID="lblServerPassword" runat="server" meta:resourcekey="lblServerPassword"></asp:Label>
                </td>
                <td class="Normal">
                    <uc1:ServerPasswordControl id="serverPassword" runat="server"></uc1:ServerPasswordControl>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="SubHead">
                </td>
                <td>
                    <asp:CheckBox runat="server" ID="cbAutoDiscovery" Checked="false" meta:resourcekey="cbAutoDiscovery" />
                </td>
            </tr>
        </table>
    </div>
    <div class="panel-footer text-right">
        <CPCC:StyleButton id="btnCancel" runat="server" CausesValidation="False" CssClass="btn btn-warning" OnClick="btnCancel_Click"><i class="fa fa-times">&nbsp;</i>&nbsp;<asp:Localize runat="server" meta:resourcekey="btnCancel"/> </CPCC:StyleButton>&nbsp;
        <CPCC:StyleButton id="btnAdd" runat="server" ValidationGroup="Server" CssClass="btn btn-success" OnClick="btnAdd_Click" OnClientClick="ShowProgressDialog('Adding New server...');"><i class="fa fa-plus">&nbsp;</i>&nbsp;<asp:Localize runat="server" meta:resourcekey="btnAddText"/> </CPCC:StyleButton>
    </div>
</asp:Panel>
