[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 authored at 2024-08-09 00:30:41 石头 committed at 2024-08-10 14:22:24
1.11 KiB
X
@using NewLife;
@using NewLife.Web;
@using XCode;
@{
    var fact = ViewBag.Factory as IEntityOperate;
    var page = ViewBag.Page as Pager;
}
<div class="tableTools-container">
    <div class="form-inline">
        <form action="@Url.Action("index")@Html.Raw("?" + page.GetBaseUrl(false, true, true))" method="post" role="form">
            @if (ManageProvider.User.Has(PermissionFlags.Insert))
            {
                @Html.ActionLink("添加" + ViewContext.Controller.GetType().GetDisplayName(), "Add", null, new { @class = "btn btn-success btn-sm" })
            }
            <div class="pull-right form-group">
                <div class="form-group">
                    <label for="RoleID" class="control-label">角色:</label>
                    @Html.ForDropDownList("RoleID", Role.FindAllWithCache(), "全部", true)
                </div>
                <div class="input-group btn-toolbar">
                    @Html.Partial("_List_Toolbar_Search")
                    @Html.Partial("_List_Toolbar_Adv")
                </div>
            </div>
        </form>
    </div>
</div>