@using SMS_MVCDTO.Enums
@model SMS_MVCDTO.Models.DTOs.SuperAdminDTOs.CreateSuperAdminRequestModel

<partial name="_Notification" />

@{
    <h1>Create</h1>

    <h4>Super Admin</h4>
    <hr />
    <div class="row">
        <div class="col-md-4">
            <form asp-action="Create" method="post" enctype="multipart/form-data">

                <div class="form-group" >
                    <label asp-for="FirstName" class="control-label"></label>
                    <input asp-for="FirstName" class="form-control" />
                    <span asp-validation-for="FirstName" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <label asp-for="LastName" class="control-label"></label>
                    <input asp-for="LastName" class="form-control" />
                    <span asp-validation-for="LastName" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <label asp-for="Email" class="control-label"></label>
                    <input asp-for="Email" class="form-control" />
                    <span asp-validation-for="Email" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <label asp-for="PhoneNumber" class="control-label"></label>
                    <input asp-for="PhoneNumber" class="form-control" />
                    <span asp-validation-for="PhoneNumber" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <label asp-for="HomeAddress" class="control-label"></label>
                    <input asp-for="HomeAddress" class="form-control" />
                    <span asp-validation-for="HomeAddress" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <label asp-for="ResidentialAddress" class="control-label"></label>
                    <input asp-for="ResidentialAddress" class="form-control" />
                    <span asp-validation-for="ResidentialAddress" class="text-danger"></span>
                </div>
                @*
            testing date formation
            <div class="form-group">
            @Html.LabelFor(m => m.DateOfBirth)
            @Html.TextBoxFor(m => m.DateOfBirth,"{0:MM/dd/yyyy}")
            </div>

            testing date formation
            <div class="form-group">
            @Html.LabelFor(m => m.DateOfBirth)
            @Html.EditorFor(m => m.DateOfBirth,"{0:MM/dd/yyyy}")
            </div>
            *@


                <div class="form-group">
                    <label asp-for="DateOfBirth" class="control-label"></label>
                    <input asp-for="DateOfBirth" class="form-control" />
                    <span asp-validation-for="DateOfBirth" class="text-danger"></span>
                </div>





                <div class="form-group">
                    <label asp-for="Gender" class="control-label" for="Gender"></label>
                    <select asp-for="Gender" asp-items="Html.GetEnumSelectList<GenderType>()"></select>
                    <span asp-validation-for="Gender" class="text-danger"></span>
                </div>




                <div class="form-group">
                    <label asp-for="MaritalStatus" class="control-label" for="MaritalStatus"></label>
                    <select asp-for="MaritalStatus" asp-items="Html.GetEnumSelectList<MaritalStatusType>()"></select>
                    <span asp-validation-for="Gender" class="text-danger"></span>
                </div>


                <div class="form-group">
                    <label asp-for="BankAccountNumber" class="control-label"></label>
                    <input asp-for="BankAccountNumber" class="form-control" />
                    <span asp-validation-for="BankAccountNumber" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="BankName" class="control-label"></label>
                    <input asp-for="BankName" class="form-control" />
                    <span asp-validation-for="BankName" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <label asp-for="GuarantorName" class="control-label"></label>
                    <input asp-for="GuarantorName" class="form-control" />
                    <span asp-validation-for="GuarantorName" class="text-danger"></span>
                </div>

                <div class="form-group">
                    <label asp-for="GuarantorPhoneNumber" class="control-label"></label>
                    <input asp-for="GuarantorPhoneNumber" class="form-control" />
                    <span asp-validation-for="GuarantorPhoneNumber" class="text-danger"></span>
                </div>

                <div class="col-md-6">
                    @*<div asp-validation-summary="ModelOnly" class="text-danger"></div>*@
                    <div class="form-group">
                        <label asp-for="ProfilePicture" style="width: 100%;"></label>

                        <input asp-for="ProfilePicture" type="file" accept=".png,.jpg,.jpeg,.gif,.tif" class="form-control" style="border:0px!important;padding: 0px;padding-top: 10px;padding-bottom: 30px;" onchange="document.getElementById('profilePicture').src = window.URL.createObjectURL(this.files[0])" />
                        <span asp-validation-for="ProfilePicture" class="text-danger"></span>
                    </div>
                </div>


                <div class="form-group">
                    <label asp-for="Password" class="control-label"></label>
                    <input asp-for="Password" type="password" class="form-control" />
                    <span asp-validation-for="Password" class="text-danger"></span>
                </div>


                <div class="form-group">
                    <input type="submit" value="Create" class="btn btn-success" />
                </div>
            </form>
        </div>
    </div>

    <div>
        <a asp-action="Index" class="btn btn-warning">Back to List</a>
    </div>

    <br />
    <br />
    <br />
    <br />
}
@section Scripts {
    @{
        await Html.RenderPartialAsync("_ValidationScriptsPartial");
    }
	}
