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

@model EForT.Models.ForexAccountModel

@using (Html.BeginForm("EditForexAccount", "Trader", FormMethod.Post, Model.ForexAccount))
{
@Html.HiddenFor(m => m.ForexAccount.Id, new { id = "hdnForexId" })
<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">Edit 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", "Home")">Home</a>
                        </li>
                        <li class="breadcrumb-item">
                            <a href="@Url.Action("MyForexAccounts", "Trader")">My Forex Accounts</a>
                        </li>
                        <li class="breadcrumb-item active">
                            Edit 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">Forex Account Number<i class="text-danger">*</i></label>
                                <input type="number" class="form-control" asp-for="ForexAccount.ForexId" id="Login" min="1" max="2147483647" required>
                            </fieldset>
                            <fieldset class="form-group">
                                <label for="Password">Password<i class="text-danger">*</i></label>
                                <div class="input-group">
                                    <input class="form-control" asp-for="ForexAccount.Password" id="Password" type="text" aria-describedby="password-eyelid">
                                    <div class="input-group-append">
                                        <span class="input-group-text py-0 cursor-pointer" id="password-eyelid" title="Hover to show password">
                                            <i class="fa fa-eye"></i>
                                        </span>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset class="form-group">
                                <label for="ServerName">Trade Server Name<i class="text-danger">*</i></label>
                                <input type="text" class="form-control" asp-for="ForexAccount.Server" id="ServerName" required>
                            </fieldset>
                            <button type="submit" class="btn btn-primary my-1 mr-1">Save Changes</button>
                            <a href="@Url.Action("MyForexAccounts", "Trader")" class="btn btn-secondary my-1">Back</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
}
