@model EForT.Models.Legacy.AdminModel


<div class="modal fade text-left" id="viewUserModal" tabindex="-1" role="dialog" aria-labelledby="viewUserModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="viewUserModalLabel">View user details for: <span class="text-secondary text-bold-700">@Model.EditUser.UserFirstName @Model.EditUser.UserLastName</span></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div>
                <div class="modal-body">
                    <fieldset class="form-group floating-label-form-group">
                        <label for="UserName">Username: </label>
                        <label class="text-secondary text-bold-700" id="UserName">@Model.EditUser.UserName</label>
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="UserEmailAddress">Email Address: </label>
                        <label class="text-secondary text-bold-700" id="UserEmailAddress">@Model.EditUser.UserEmailAddress</label>
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="RoleDescription">Role: </label>
                        @if (Model.ListRoles != null)
                        {
                            if (Model.ListRoles.Count > 0)
                            {
                                <label class="text-secondary text-bold-700" id="RoleDescription">@Model.ListRoles.SingleOrDefault(s => s.RoleID == Model.EditUser.RoleID).RoleDescription</label>
                            }
                        }
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="UserDOB">Date of Birth: </label>
                        <label class="text-secondary text-bold-700" id="UserDOB">@Model.EditUser.UserDOB</label>
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="UserPhone">Phone Number: </label>
                        <label class="text-secondary text-bold-700" id="UserPhone">@Model.EditUser.UserPhone</label>
                    </fieldset>
                    <fieldset class="form-group floating-label-form-group">
                        <label for="UserPhone">Account Enabled? </label>
                        @if (Model.EditUser.LoginEnabled)
                        {
                            <label class="text-secondary text-bold-700" id="UserPhone">Yes</label>
                        }
                        else
                        {
                            <label class="text-secondary text-bold-700" id="UserPhone">No</label>
                        }
                    </fieldset>
                </div>
                <div class="modal-footer">
                    <input id="close-modal" type="reset" class="btn btn-secondary" data-dismiss="modal" value="Close">
                </div>
            </div>
        </div>
    </div>
</div>