@model EpinelPS.Models.Admin.ServerConfiguration

@{
    ViewData["Title"] = "Configuration";
}

<div class="text-center">
    <h1 class="display-4" data-i18n="config.server.title">服务器配置</h1>
    <form asp-action="Configuration">
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <dl class="row">
            <dt class="col-sm-2" data-i18n="config.server.logLevel">日志级别:</dt>
            <dd class="col-sm-10">
                @Html.DropDownListFor(model => model.LogType, Html.GetEnumSelectList<LogType>(), "", new { @class = "form-control" })
            </dd>
        </dl>

        <button id="reloadDB" type="button" class="btn btn-danger" data-i18n-title="config.server.updateResourcesHint" onclick="runSimpleCmd('updateServer')" data-i18n="config.server.updateResources">Update resources</button>


        <div class="form-group">
            <button type="submit" class="btn btn-primary" data-i18n="common.save"></button>
        </div>
    </form>
</div>