@using ContractService @using ContractService.Authorization @using ContractService.Configuration @using ContractService.Helpers @using ContractService.Views.Shared.Modals @model ContractService.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()) { } @**@