@page
@model Admin.Pages.Config.CompanyModel
@{
    ViewData["Title"] = "회사 정보";
}

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

    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
    <partial name="_StatusMessage" />

    <form id="fAdminWrite" method="post" autocomplete="off" accept-charset="UTF-8">
        <div class="row mb-2">
            <label asp-for="Input.Company.Name" class="col-sm-2 col-form-label">상호 명</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.Name" class="form-control" />
                <span asp-validation-for="Input.Company.Name" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.RegNo" class="col-sm-2 col-form-label">사업자 등록 번호</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.RegNo" class="form-control" />
                <span asp-validation-for="Input.Company.RegNo" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.Address" class="col-sm-2 col-form-label">사업장 소재지</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.Address" class="form-control" />
                <span asp-validation-for="Input.Company.Address" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.ZipCode" class="col-sm-2 col-form-label">사업장 우편번호</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.ZipCode" class="form-control" />
                <span asp-validation-for="Input.Company.ZipCode" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.Owner" class="col-sm-2 col-form-label">대표자 명</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.Owner" class="form-control" />
                <span asp-validation-for="Input.Company.Owner" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.Tel" class="col-sm-2 col-form-label">대표 전화번호</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.Tel" class="form-control" />
                <span asp-validation-for="Input.Company.Tel" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.Fax" class="col-sm-2 col-form-label">FAX 번호</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.Fax" class="form-control" />
                <span asp-validation-for="Input.Company.Fax" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.RetailSaleNo" class="col-sm-2 col-form-label">통신판매업 신고번호</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.RetailSaleNo" class="form-control" />
                <span asp-validation-for="Input.Company.RetailSaleNo" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.AddedSaleNo" class="col-sm-2 col-form-label">부가통신 사업자번호</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.AddedSaleNo" class="form-control" />
                <span asp-validation-for="Input.Company.AddedSaleNo" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.Hosting" class="col-sm-2 col-form-label">호스팅 서비스</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.Hosting" class="form-control" />
                <span asp-validation-for="Input.Company.Hosting" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.AdminName" class="col-sm-2 col-form-label">정보관리책임자</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.AdminName" class="form-control" />
                <span asp-validation-for="Input.Company.AdminName" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.AdminEmail" class="col-sm-2 col-form-label">정보관리책임자 이메일</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.AdminEmail" class="form-control" />
                <span asp-validation-for="Input.Company.AdminEmail" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.SiteUrl" class="col-sm-2 col-form-label">사이트 주소</label>
            <div class="col-sm-10">
                <input asp-for="Input.Company.SiteUrl" class="form-control" />
                <span asp-validation-for="Input.Company.SiteUrl" class="text-danger"></span>
            </div>
        </div>

        <div class="row mb-2">
            <label asp-for="Input.Company.BankCode" class="col-sm-2 col-form-label">입금계좌</label>
            <div class="col-sm-10">
                <div class="row">
                    <label asp-for="Input.Company.BankCode" class="col-auto col-form-label">은행</label>
                    <div class="col-sm">
                        <select asp-for="Input.Company.BankCode" class="form-select" asp-items="@(Model.BankCodes.Select(x => new SelectListItem(x.Text, x.Value)))">
                            <option value="">은행을 선택하세요.</option>
                        </select>
                        <span asp-validation-for="Input.Company.BankCode" class="text-danger"></span>
                    </div>

                    <label asp-for="Input.Company.BankOwner" class="col-auto col-form-label">예금주</label>
                    <div class="col-sm">
                        <input asp-for="Input.Company.BankOwner" class="form-control" />
                        <span asp-validation-for="Input.Company.BankOwner" class="text-danger"></span>
                    </div>

                    <label asp-for="Input.Company.BankNumber" class="col-auto col-form-label">계좌번호</label>
                    <div class="col-sm">
                        <input asp-for="Input.Company.BankNumber" class="form-control" />
                        <span asp-validation-for="Input.Company.BankNumber" class="text-danger"></span>
                    </div>
                </div>
            </div>
        </div>

        <hr />
        <div class="row">
            <div class="col text-center p-3">
                <button type="submit" class="btn btn-success">저장하기</button>
            </div>
        </div>

        <br />
    </form>
</div>

@section Scripts {
    @{

    }
}