@model bitforum.Models.Views.UserViewModel
@{
    ViewData["Title"] = "관리자 정보 수정";
}

<div class="container">
    <h3>@ViewData["Title"]</h3>
    <hr />

    <partial name="_StatusMessage" />
   
    <form name="f_admin_write" id="fAdminWrite" method="post" accept-charset="utf-8" autocomplete="off" asp-controller="User" asp-action="Update">
        <input type="hidden" asp-for="ID" />
        <div class="row mb-2">
            <label for="Email" class="col-sm-2 col-form-label">E-mail</label>
            <div class="col-sm-10">
                <input asp-for="Email" class="form-control"/>
                <span asp-validation-for="Email" class="text-danger"></span>
                <small class="form-text text-muted">중복 시 변경이 불가합니다.</small>
            </div>
        </div>
        <div class="row mb-2">
            <label for="Name" class="col-sm-2 col-form-label">이름</label>
            <div class="col-sm-10">
                <input asp-for="Name" class="form-control" />
                <span asp-validation-for="Name" class="text-danger"></span>
                <small class="form-text text-muted">실명을 입력해주세요.</small>
            </div>
        </div>
        <div class="row">
            <label for="Phone" class="col-sm-2 col-form-label">연락처</label>
            <div class="col-sm-10">
                <input asp-for="Phone" class="form-control" />
                <span asp-validation-for="Phone" class="text-danger"></span>
                <small class="form-text text-muted">010-XXXX-XXXX 형식으로 입력해주세요.</small>
            </div>
        </div>
        <hr/>
        <div class="d-grid gap-2 text-center d-md-block">
            <button type="submit" class="btn btn-sm btn-success">저장</button>
            <a asp-action="Index" class="btn btn-sm btn-secondary">취소</a>
        </div>
    </form>
</div>