
@{
    ViewData["Title"] = "Open Account";
    Layout = "~/Views/Shared/_HomeLayout.cshtml";
}

@model EForT.Models.Legacy.OpenAccountModel

@using (Html.BeginForm("OpenDeveloperAccount", "Home", FormMethod.Post, Model))
{
    <div>
        <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">Open a Developer 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="#">Open an Account</a>
                                </li>
                                <li class="breadcrumb-item active">
                                    Developer Account
                                </li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-wrapper">
                <div class="content-body">
                    <div class="row pb-2">
                        <div class="col-lg-4 col-md-12 col-sm-12 col-12 pb-md-2 pb-sm-2 pb-lg-2 pb-xl-2 pb-2">
                            <div class="card h-100">
                                <div class="card-header">
                                    <div class="font-medium-2 bottom-border">
                                        <p>Personal Information</p>
                                    </div>
                                </div>
                                <div class="card-body">
                                    <div class="form-horizontal">
                                        <fieldset class="form-group">
                                            <label for="TitleID">Title <i class="warning">*</i></label>
                                            <select class="form-control" asp-for="DeveloperAccount.TitleID" id="TitleID" required>
                                                <option value="" selected disabled>Select</option>
                                                @if (Model.ListTitles != null)
                                                {
                                                    if (Model.ListTitles.Count > 0)
                                                    {
                                                        for (int i = 0; i < Model.ListTitles.Count; i++)
                                                        {
                                                            <option value="@Model.ListTitles[i].TitleID">@Model.ListTitles[i].TitleDescription</option>
                                                        }
                                                    }
                                                }
                                            </select>
                                        </fieldset>
                                        <fieldset class="form-group">
                                            <label for="UserFirstName">First Name <i class="warning">*</i></label>
                                            <input type="text" class="form-control" asp-for="DeveloperAccount.UserFirstName" id="UserFirstName" maxlength="50" required>
                                        </fieldset>
                                        <fieldset class="form-group">
                                            <label for="UserMiddleInitial">Middle Initial</label>
                                            <input type="text" class="form-control" asp-for="DeveloperAccount.UserMiddleInitial" id="UserMiddleInitial" maxlength="1">
                                        </fieldset>
                                        <fieldset class="form-group">
                                            <label for="UserLastName">Last Name <i class="warning">*</i></label>
                                            <input type="text" class="form-control" asp-for="DeveloperAccount.UserLastName" id="UserLastName" maxlength="50" required>
                                        </fieldset>
                                        <fieldset class="form-group">
                                            <label for="pickerUserDOB">Date of Birth <i class="warning">*</i></label>
                                            <input type='text' class="form-control" asp-for="DeveloperAccount.UserDOB" id="pickerUserDOB" required />
                                        </fieldset>
                                        <fieldset class="form-group">
                                            <label for="UserPhone">Primary Phone <i class="warning">*</i></label>
                                            <input type="text" class="form-control" asp-for="DeveloperAccount.UserPhone" id="UserPhone" maxlength="50" required>
                                        </fieldset>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 col-md-12 col-sm-12 col-12 pb-md-2 pb-sm-2 pb-lg-2 pb-xl-2 pb-2">
                            <div class="card h-100">
                                <div class="card-header">
                                    <div class="font-medium-2 bottom-border">
                                        <p>Residential Information</p>
                                    </div>
                                </div>
                                <div class="card-body">
                                    <fieldset class="form-group">
                                        <label for="CountryID">Country of Residence <i class="warning">*</i></label>
                                        <select class="form-control" asp-for="DeveloperAccount.CountryID" id="CountryID" required>
                                            <option value="" selected disabled>Select</option>
                                            @if (Model.ListCountries != null)
                                            {
                                                if (Model.ListCountries.Count > 0)
                                                {
                                                    for (int i = 0; i < Model.ListCountries.Count; i++)
                                                    {
                                                        <option value="@Model.ListCountries[i].CountryID">@Model.ListCountries[i].CountryDescription</option>
                                                    }
                                                }
                                            }
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="UserAddress1">Address <i class="warning">*</i></label>
                                        <input type="text" class="form-control" asp-for="DeveloperAccount.UserAddress1" id="UserAddress1" maxlength="50" required>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="UserAddress2">Address Cont.</label>
                                        <input type="text" class="form-control" asp-for="DeveloperAccount.UserAddress2" id="UserAddress2" maxlength="50">
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="UserCity">City <i class="warning">*</i></label>
                                        <input type="text" class="form-control" asp-for="DeveloperAccount.UserCity" id="UserCity" maxlength="50" required>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="StateID">State <i class="warning">*</i></label>
                                        <select class="form-control" asp-for="DeveloperAccount.StateID" id="StateID" required>
                                            <option value="" selected disabled>Select</option>
                                            @if (Model.ListStates != null)
                                            {
                                                if (Model.ListStates.Count > 0)
                                                {
                                                    for (int i = 0; i < Model.ListStates.Count; i++)
                                                    {
                                                        <option value="@Model.ListStates[i].StateID">@Model.ListStates[i].StateDescription</option>
                                                    }
                                                }
                                            }
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="UserZipCode">Zip Code <i class="warning">*</i></label>
                                        <input type="text" class="form-control" asp-for="DeveloperAccount.UserZipCode" id="UserZipCode" maxlength="10" required>
                                    </fieldset>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 col-md-12 col-sm-12 col-12 pb-md-2 pb-sm-2 pb-2">
                            <div class="card h-100">
                                <div class="card-header">
                                    <div class="font-medium-2 bottom-border">
                                        <p>Expert Advisor</p>
                                    </div>
                                </div>
                                <div class="card-body">
                                    <fieldset class="form-group">
                                        <label for="ReportUrl">Link to Expert Advisor Report</label>
                                        <input type="text" class="form-control" asp-for="ContractType.ReportUrl" id="ReportUrl" maxlength="50">
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="DemoUrl">Link to Demo Video</label>
                                        <input type="text" class="form-control" asp-for="ContractType.DemoUrl" id="DemoUrl" maxlength="50">
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="ContractType">Sell/Buy Algorithm <i class="text-danger">*</i></label>
                                        <select class="form-control" asp-for="ContractType.ContractType" id="ContractType" placeholder="Title" required>
                                            <option value="" selected disabled>Select</option>
                                            <option value="Sell">Sell</option>
                                            <option value="Rent">Rent</option>
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="LeaseFrequency">Lease Time <i class="text-danger">*</i></label>
                                        <select class="form-control" asp-for="ContractType.LeaseFrequency" id="LeaseFrequency" placeholder="Title" required>
                                            <option value="" selected disabled>Select</option>
                                            <option value="Daily">Daily</option>
                                            <option value="Weekly">Weekly</option>
                                            <option value="Monthly">Monthly</option>
                                            <option value="Annual">Annual</option>
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="SellType">Sell Type <i class="text-danger">*</i></label>
                                        <select class="form-control" asp-for="ContractType.SellType" id="SellType" placeholder="SellType" required>
                                            <option value="" selected disabled>Select</option>
                                            <option value="Source">Source</option>
                                            <option value="Executable">Executable</option>
                                            <option value="Both">Both</option>
                                        </select>
                                    </fieldset>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 col-md-12 col-sm-12 col-12 pb-md-2 pb-sm-2 pb-lg-0 pb-xl-0 pb-2">
                            <div class="card h-100">
                                <div class="card-header">
                                    <div class="font-medium-2 bottom-border">
                                        <p>EForT Account Information</p>
                                    </div>
                                </div>
                                <div class="card-body">
                                    <fieldset class="form-group">
                                        <label for="RoleID">Role <i class="warning">*</i></label>
                                        <select class="form-control" asp-for="DeveloperAccount.RoleID" id="RoleID" required>
                                            @if (Model.ListRoles != null)
                                            {
                                                if (Model.ListRoles.Count > 0)
                                                {
                                                    <option value="@Model.ListRoles[5].RoleID">@Model.ListRoles[5].RoleDescription</option>
                                                }
                                            }
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="UserEmail">Email Address <i class="warning">*</i></label>
                                        <input type="email" class="form-control" asp-for="UserEmail" id="UserEmail" maxlength="100" required>
                                        <p class="mb-0 text-muted">You will be contacted primarily through email. Please provide a valid email address.</p>
                                        <span asp-validation-for="UserEmail" class="error-text"></span>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="UserName">Username <i class="warning">*</i></label>
                                        <input type="text" class="form-control" asp-for="UserName" id="UserName" placeholder="Username must be 8-15 characters" maxlength="15" required>
                                        <span asp-validation-for="UserName" class="error-text"></span>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="UserPassword">Password <i class="warning">*</i></label>
                                        <input type="password" class="form-control UserPassword" asp-for="UserPassword" id="UserPassword" name="UserPassword" placeholder="Password must be 8-15 characters" maxlength="15" required>
                                        <span asp-validation-for="UserPassword" class="error-text"></span>
                                    </fieldset>
                                    <fieldset class="form-group mb-0">
                                        <label for="ComparePassword">Confirm Password <i class="warning">*</i></label>
                                        <input type="password" class="form-control compare" asp-for="ComparePassword" name="ComparePassword" id="ComparePassword" placeholder="Password must be 8-15 characters" maxlength="15" required>
                                        <span asp-validation-for="ComparePassword" class="error-text"></span>
                                    </fieldset>
                                    <div class="col-12 pt-1 pb-0 px-0">
                                        <div class="requirements">
                                            <ul class="helper-text">
                                                <li class="no-list">Requirements:</li>
                                                <li class="length">Must be at least 8 characters long.</li>
                                                <li class="lowercase">Must contain a letter.</li>
                                                <li class="number">Must contain a number.</li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-4 col-md-12 col-sm-12 col-12 pb-lg-0 pb-xl-0">
                            <div class="card h-100">
                                <div class="card-header">
                                    <div class="font-medium-2 bottom-border">
                                        <p>Security Questions</p>
                                    </div>
                                </div>
                                <div class="card-body">
                                    <fieldset class="form-group">
                                        <label for="QuestionID1">Question 1 <i class="warning">*</i></label>
                                        <select class="form-control" asp-for="DeveloperAccount.QuestionID1" id="QuestionID1" required>
                                            <option value="" selected disabled>Select</option>
                                            @if (Model.ListSecurityQuestions != null)
                                            {
                                                if (Model.ListSecurityQuestions.Count > 0)
                                                {
                                                    for (int i = 0; i < Model.ListSecurityQuestions.Count; i++)
                                                    {
                                                        <option value="@Model.ListSecurityQuestions[i].QuestionID">@Model.ListSecurityQuestions[i].QuestionDescription</option>
                                                    }
                                                }
                                            }
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="Answer1">Answer <i class="warning">*</i></label>
                                        <input type="text" class="form-control" asp-for="DeveloperAccount.Answer1" id="Answer1" maxlength="50" required>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="QuestionID2">Question 2 <i class="warning">*</i></label>
                                        <select class="form-control" asp-for="DeveloperAccount.QuestionID2" id="QuestionID2" required>
                                            <option value="" selected disabled>Select</option>
                                            @if (Model.ListSecurityQuestions != null)
                                            {
                                                if (Model.ListSecurityQuestions.Count > 0)
                                                {
                                                    for (int i = 0; i < Model.ListSecurityQuestions.Count; i++)
                                                    {
                                                        <option value="@Model.ListSecurityQuestions[i].QuestionID">@Model.ListSecurityQuestions[i].QuestionDescription</option>
                                                    }
                                                }
                                            }
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="Answer2">Answer <i class="warning">*</i></label>
                                        <input type="text" class="form-control" asp-for="DeveloperAccount.Answer2" id="Answer2" maxlength="100" required>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="QuestionID3">Question 3 <i class="warning">*</i></label>
                                        <select class="form-control" asp-for="DeveloperAccount.QuestionID3" id="QuestionID3" required>
                                            <option value="" selected disabled>Select</option>
                                            @if (Model.ListSecurityQuestions != null)
                                            {
                                                if (Model.ListSecurityQuestions.Count > 0)
                                                {
                                                    for (int i = 0; i < Model.ListSecurityQuestions.Count; i++)
                                                    {
                                                        <option value="@Model.ListSecurityQuestions[i].QuestionID">@Model.ListSecurityQuestions[i].QuestionDescription</option>
                                                    }
                                                }
                                            }
                                        </select>
                                    </fieldset>
                                    <fieldset class="form-group">
                                        <label for="Answer 3">Answer<i class="warning">*</i></label>
                                        <input type="text" class="form-control" asp-for="DeveloperAccount.Answer3" id="Answer" maxlength="50" required>
                                    </fieldset>
                                    <div class="col-12 px-0">
                                        <span>By submitting information I confirm that I agree to the EForT.com <a class="link-alt" href="#">Terms and Conditions</a>, <a class="link-alt" href="#">Privacy Policy</a>, and <a class="link-alt" href="#">Notice Regarding Anti-Money Laundering</a> and may be contacted about my application.</span>
                                    </div>
                                    @if (ViewBag.OpenAccount != null)
                                    {
                                        <div class="text-danger text-center error-message my-2">
                                            <span>@ViewBag.OpenAccount</span>
                                        </div>
                                    }
                                    <button type="submit" class="btn btn-primary mt-1 mr-1 ml-0">Submit</button>
                                    <a href="@Url.Action("Index", "Home")" class="btn btn-secondary mt-1">Cancel </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
}
