@model AngelExam.SystemModel
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutList.cshtml";
}

<style type="text/css">

    .layui-form-label {
        width: 120px;
    }

    .layui-input-block {
        margin-left: 150px;
    }

    .layui-textarea {
        min-height: 90px;
    }
</style>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">系统设置</div>
                <div class="layui-card-body" pad15>
                    <form class="layui-form" wid100 lay-filter="formTest" action="/Admin/SystemSeting/Index" method="post">
                        <div class="layui-form-item">
                            <label class="layui-form-label">系统名称</label>
                            <div class="layui-input-block">
                                @Html.TextBoxFor(x => x.AngelSystemName, new { @class = "layui-input" })
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">开启系统日志</label>
                            <div class="layui-input-inline">
                                <input type="checkbox" name="LogMonitor" @if (Model.LogMonitor == "true") { @Html.Raw("checked") } lay-skin="switch" lay-text="ON|OFF">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">系统版本</label>
                            <div class="layui-input-block">
                                @Html.TextBoxFor(x => x.AngelVersion, new { @class = "layui-input" })
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">最大文件上传</label>
                            <div class="layui-input-inline" style="width: 80px;">
                                @Html.TextBoxFor(x => x.MaxFileUpload, null, new Dictionary<string, object> { { "class", "layui-input" }, { "lay-verify", "number" } })
                            </div>
                            <div class="layui-input-inline layui-input-company">KB</div>
                            <div class="layui-form-mid layui-word-aux">提示：1 M = 1024 KB</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">上传文件类型</label>
                            <div class="layui-input-block">
                                @Html.TextBoxFor(x => x.UploadFileType, new { @class = "layui-input" })
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">版权信息</label>
                            <div class="layui-input-block">
                                @Html.TextAreaFor(x => x.CopyRight, new { @class = "layui-textarea" })
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn fl txt-center" lay-submit lay-filter="set_website">确认保存</button>
                                <div class="div-msg fl" style="float:left;">@ViewBag.Msg</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>