@using bitforum.Helpers

@{
    ViewData["Title"] = "메타 태그";
    var config = ViewBag.Config as Dictionary<string, string>;
}

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

    <partial name="_StatusMessage" />

    <form name="f_admin_write" id="fAdminWrite" method="post" asp-controller="Meta" asp-action="Save" autocomplete="off">
        <div class="row mb-3">
            <label for="metaKeywords" class="col-sm-2 col-form-label">Meta Keywords</label>
            <div class="col-sm-10">
                <input type="text" name="meta_keywords" id="metaKeywords" class="form-control" value="@config.GetConfig("meta_keywords")" />
                <div class="form-text text-muted">
                    검색엔진 키워드
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="metaDescription" class="col-sm-2 col-form-label">Meta Description</label>
            <div class="col-sm-10">
                <input type="text" name="meta_description" id="metaDescription" class="form-control" value="@config.GetConfig("meta_description")" />
                <div class="form-text text-muted">
                    사이트 설명
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <label for="metaAuthor" class="col-sm-2 col-form-label">Meta Author</label>
            <div class="col-sm-10">
                <input type="text" name="meta_author" id="metaAuthor" class="form-control" value="@config.GetConfig("meta_author")" />
                <div class="form-text text-muted">
                    사이트 제작자
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <label for="metaViewport" class="col-sm-2 col-form-label">Meta Viewport</label>
            <div class="col-sm-10">
                <input type="text" name="meta_viewport" id="metaViewport" class="form-control" value="@config.GetConfig("meta_viewport")" />
                <div class="form-text text-muted">
                    페이지 크기와 비율 지정
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <label for="metaApplicationName" class="col-sm-2 col-form-label">Meta Application Name</label>
            <div class="col-sm-10">
                <input type="text" name="meta_application_name" id="metaApplicationName" class="form-control" value="@config.GetConfig("meta_application_name")" />
                <div class="form-text text-muted">
                    프로그램 이름
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <label for="metaGenerator" class="col-sm-2 col-form-label">Meta Generator</label>
            <div class="col-sm-10">
                <input type="text" name="meta_generator" id="metaGenerator" class="form-control" value="@config.GetConfig("meta_generator")" />
                <div class="form-text text-muted">
                    문서 작성에 사용한 저작 도구를 지정, 저작자가 저작 도구를 사용하지 않고 직접 작성한 때에는 이 속성값을 사용하지 않음
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <label for="metaRobots" class="col-sm-2 col-form-label">Meta Robots</label>
            <div class="col-sm-10">
                <input type="text" name="meta_robots" id="metaRobots" class="form-control" value="@config.GetConfig("meta_robots")" />
                <div class="form-text text-muted">
                    협조적인 크롤러, 또는 "로봇"의 동작을 지정
                </div>
            </div>
        </div>

        <div class="row mb-3">
            <label for="metaAdds" class="col-sm-2 col-form-label">Meta Adds</label>
            <div class="col-sm-10">
                <textarea name="meta_adds" id="metaAdds" class="form-control" rows="6">@config.GetConfig("meta_adds")</textarea>
                <div class="form-text text-muted">
                    직접 추가할 메타 태그를 작성합니다.
                </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>
