@{
    ViewData["Title"] = "Delete Forex Account";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@model EForT.Models.Legacy.ForexAccountModel

@using (Html.BeginForm("DeleteForexAccount", "RegisteredUser", FormMethod.Post, Model.ForexAccount))
{
    @Html.HiddenFor(m => m.ForexAccount.ForexId, new { id = "hdnForexId" })
    @Html.HiddenFor(m => m.ForexAccount.ServerName, new { id = "hdnServerName" })
    @Html.HiddenFor(m => m.ForexAccount.Login, new { id = "hdnLogin" })

    <div class="app-content container center-layout py-3">
        <div class="content-header row">
            <div class="content-header-left col-12 mb-2">
                <h1 class="content-header-title mb-0">Delete Forex Account</h1>
                <div class="row breadcrumbs-top">
                    <div class="breadcrumb-wrapper col-12">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item">
                                <a href="@Url.Action("Index", "RegisteredUser")">Home</a>
                            </li>
                            <li class="breadcrumb-item">
                                <a href="@Url.Action("MyForexAccounts", "RegisteredUser")">My Forex Accounts</a>
                            </li>
                            <li class="breadcrumb-item active">
                                Delete Forex Account
                            </li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-wrapper">
            <div class="content-body">
                <div class="row">
                    <div class="col-12 col-xl-4 col-lg-4 col-md-12 col-sm-12 col-xs-12">
                        <div class="card">
                            <div class="card-header pb-0">
                                <div class="font-medium-2 bottom-border">
                                    <p>Forex Information</p>
                                </div>
                            </div>
                            <div class="card-body pt-2">
                                <fieldset class="form-group">
                                    <label for="Login">Login <i class="text-danger"></i></label>
                                    <input type="text" class="form-control" asp-for="ForexAccount.Login" id="Login" disabled>
                                </fieldset>
                                <fieldset class="form-group">
                                    <label for="ServerName"> Server Url <i class="text-danger"></i></label>
                                    <input type="text" class="form-control" asp-for="ForexAccount.ServerName" id="ServerName" disabled>
                                </fieldset>
                                <fieldset class="form-group">
                                    <label for="Password">Password <i class="text-danger">*</i></label>
                                    <input type="password" class="form-control" asp-for="ForexAccount.Password" id="Password" required>
                                    <p class="mb-0 text-muted">Enter password to delete the account</p>
                                </fieldset>
                                <button type="submit" class="btn btn-primary my-1 mr-1">Delete Account</button>
                                <a href="@Url.Action("MyForexAccounts", "RegisteredUser")" class="btn btn-secondary my-1">Cancel </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
}


