@using WeApp @using WeApp.Authorization @using WeApp.Configuration @using WeApp.Helpers @using WeApp.Views.Shared.Modals @model WeApp.Models.Layout.RightSideBarViewModel @{ var settingName = new Func((s) => L(s.Replace(".", ""))); } @{ //超级管理员和管理员才可操作 if (AbpSession.UserType == UsersAndRolesTypeDefinition.Supper ) { var imageModal = new ModalViewModel(L("SettingImage"),"", new ModalBodyViewModel(new List() { new InputFile("image",L("SettingImagePath")).SetImageOption("ImageInfo","ImageName","ImageExt") }), "image-modal"); var cacheModal = new ModalViewModel(L("SettingImage"),"", new ModalBodyViewModel(new List() { new Input("id",L("SettingCacheName")).SetNotRequired().SetSelectOptions(IwbCacheNames.GetCacheList(),isAddBlank:false) }), "cache-modal"); @Html.Partial("Modals/_Modal", imageModal) @Html.Partial("Modals/_Modal", cacheModal); } } @using (Html.BeginScripts()) { } @**@