@model EForT.Models.AdminModel

<div class="modal fade text-left" id="addServerModal" tabindex="-1" role="dialog" aria-labelledby="addServerModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="addServerModalLabel">Add VPS</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <form id="addServerForm" asp-action="AddMT4VPS" asp-controller="MT4Server" method="post">
                <input type="hidden" asp-for="EditServer.Id" id="hdnId" />
                <div class="modal-body">
                    <fieldset class="form-group floating-label-form-group">
                        <label for="ServerName">Server Name: <i class="warning">*</i></label>
                        <input type="text" asp-for="EditServer.ServerName" class="form-control" id="ServerName" required>
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="ServerAddress">Server Address: <i class="warning">*</i></label>
                        <input type="url" asp-for="EditServer.ServerAddress" pattern="https?://.+" title="Include http://" class="form-control" id="ServerAddress" required>
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="ServerDataFolder">Data Folder Path: <i class="warning">*</i></label>
                        <input type="text" asp-for="EditServer.ServerDataFolder" pattern="(?:[\w]:|\\)(\\[a-zA-Z_\-\s0-9\.]+)+\\" title="Include {drive}:\ or \\ for remote paths" class="form-control" id="ServerDataFolder" required>
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="SessionNumber">Remote Desktop Session Number: <i class="warning">*</i></label>
                        <input type="number" asp-for="EditServer.DesktopSessionNumber" title="The session to run on remote windos desktop" class="form-control" id="SessionNumber" required>
                    </fieldset>
                </div>
                <div class="modal-footer">
                    <input id="btn-add-server" type="submit" class="btn btn-primary" value="Add Server">
                    <input id="close-modal" type="reset" class="btn btn-secondary" data-dismiss="modal" value="Close">
                </div>
            </form>
        </div>
    </div>
</div>