@page "{id:int}"
@model Admin.Pages.Forum.Board.Meta.ExpModel
@{
    ViewData["Title"] = "게시판 관리 - 경험치";
    ViewData["Sector"] = "Exp";
    ViewData["BoardID"] = Model.BoardID;
    ViewData["BoardList"] = Model.BoardList;
    ViewData["QueryString"] = Model.QueryString;
}

<div class="container">
    <partial name="_Header" />
    <partial name="_StatusMessage" />
    <partial name="/Pages/Forum/Board/_NavTabs.cshtml" />

    <form name="f_admin_write" id="fAdminWrite" method="post" accept-charset="utf-8" autocomplete="off" enctype="multipart/form-data">
        <input type="hidden" asp-for="Input.ID" />
        <input type="hidden" asp-for="Input.BoardID" />

        <div class="row mb-3">
            <label for="Input_EnableExp" class="col-auto col-md-3">경험치 기능</label>
            <div class="col col-md-9">
                <div class="form-check">
                    <input type="checkbox" asp-for="Input.EnableExp" class="form-check-input" />
                    <label asp-for="Input.EnableExp" class="form-check-label">사용합니다.</label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="Input_ShowExpGuide" class="col-auto col-md-3">경험치 안내</label>
            <div class="col col-md-9">
                <div class="form-check">
                    <input type="checkbox" asp-for="Input.ShowExpGuide" class="form-check-input" />
                    <label asp-for="Input.ShowExpGuide" class="form-check-label">사용합니다.</label>
                </div>
            </div>
        </div>

        <hr/>

        <div class="row align-items-top text-center">
            <label class="col-md-3 col-form-label">-</label>
            <div class="col">
                지급
            </div>
            <div class="col">
                차감
            </div>
            <div class="col">
                기한
            </div>
        </div>

        <!-- 게시글 작성 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">게시글 작성</label>
            <div class="col">
                <input type="number" asp-for="Input.PostWriteExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.PostWriteExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.PostWriteUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.PostWriteUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.PostWriteExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.PostWriteExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 댓글 작성 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">댓글 작성</label>
            <div class="col">
                <input type="number" asp-for="Input.CommentWriteExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.CommentWriteExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.CommentWriteUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.CommentWriteUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.CommentWriteExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.CommentWriteExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 파일 업로드 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">파일 업로드</label>
            <div class="col">
                <input type="number" asp-for="Input.FileUploadExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.FileUploadExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.FileUploadUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.FileUploadUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.FileUploadExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.FileUploadExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 파일 다운로드 (단, 지급량만) -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">파일 다운로드</label>
            <div class="col">
                <input type="number" asp-for="Input.FileDownloadExp" class="form-control" min="-10000" max="10000" required />
                <span asp-validation-for="Input.FileDownloadExp" class="text-danger"></span>
            </div>
            <div class="col text-center">
                -
            </div>
            <div class="col text-center">
                -
            </div>
        </div>

        <!-- 게시글 읽기 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">게시글 읽기</label>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostReadExp" class="form-control" min="-10000" max="10000" required />
                <span asp-validation-for="Input.OtherPostReadExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostReadUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherPostReadUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostReadExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OtherPostReadExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 게시글 좋아요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">게시글 좋아요</label>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherPostLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherPostLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OtherPostLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 게시글 싫어요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">게시글 싫어요</label>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostDisLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherPostDisLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostDisLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherPostDisLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherPostDisLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OtherPostDisLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 댓글 좋아요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">댓글 좋아요</label>
            <div class="col">
                <input type="number" asp-for="Input.OtherCommentLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherCommentLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherCommentLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherCommentLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherCommentLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OtherCommentLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 댓글 싫어요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">댓글 싫어요</label>
            <div class="col">
                <input type="number" asp-for="Input.OtherCommentDisLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherCommentDisLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherCommentDisLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OtherCommentDisLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OtherCommentDisLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OtherCommentDisLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 내 게시글 읽힘 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">내 게시글 읽힘</label>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostReadExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnPostReadExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostReadUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnPostReadUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostReadExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OwnPostReadExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 내 게시글 좋아요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">내 게시글 좋아요</label>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnPostLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnPostLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OwnPostLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 내 게시글 싫어요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">내 게시글 싫어요</label>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostDisLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnPostDisLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostDisLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnPostDisLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnPostDisLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OwnPostDisLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 내 댓글 좋아요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">내 댓글 좋아요</label>
            <div class="col">
                <input type="number" asp-for="Input.OwnCommentLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnCommentLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnCommentLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnCommentLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnCommentLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OwnCommentLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <!-- 내 댓글 싫어요 -->
        <div class="row mb-3">
            <label class="col-md-3 col-form-label">내 댓글 싫어요</label>
            <div class="col">
                <input type="number" asp-for="Input.OwnCommentDisLikeExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnCommentDisLikeExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnCommentDisLikeUndoExp" class="form-control" min="0" max="10000" required />
                <span asp-validation-for="Input.OwnCommentDisLikeUndoExp" class="text-danger"></span>
            </div>
            <div class="col">
                <input type="number" asp-for="Input.OwnCommentDisLikeExpWithinDays" class="form-control" min="0" max="365" required />
                <span asp-validation-for="Input.OwnCommentDisLikeExpWithinDays" class="text-danger"></span>
            </div>
        </div>

        <hr/>
        <div class="d-grid gap-2 text-center d-md-block">
            <button type="submit" class="btn btn-success">저장</button>
            <a href="/Forum/Board/List\@Model.QueryString" class="btn btn-secondary">취소</a>
        </div>
        <br />
    </form>
</div>