12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- @using WeApp
- @using WeApp.Authorization
- @using WeApp.Configuration
- @using WeApp.Views.Shared.Modals
- @using WeApp.Views.Shared.SearchForm
- @using WeApp.Views.Shared.Table
- @{
- ViewBag.Title = L("SettingTitle");
- string activeMenu = PermissionNames.PagesSystemMgSettingMg; //The menu item will be active for this page.
- ViewBag.ActiveMenu = activeMenu;
- var table = new TableViewModel(IwbConsts.ApiAppUrl + "Settings/GetAll", activeMenu, new SearchFormViewModel(new List<SearchItem>()
- {
- new SearchItem("name", L("settingName")),
- new SearchItem("displayName", L("settingDisplayName")),
- })).SetFields(new List<FieldItem>()
- {
- new FieldItem("name", L("settingName")),
- new FieldItem("displayName", L("settingDisplayName")),
- new FieldItem("value", L("settingValue")),
- });
- }
- @Html.Partial("Table/_Table", table)
- @section modal{
- <!--Main Modal-->
- @{
- var modal = new ModalViewModel(L("setting"), new ModalBodyViewModel(new List<Input>()
- {
- new InputHide("id"),
- new Input("name", L("settingName")).SetDisabled(),
- new Input("displayName", L("settingDisplayName")).SetDisabled(),
- //new Input("type", L("settingType")),
- new Input("value", L("settingValue")),
- new InputTextarea("description",L("settingDescription")).SetDisabled(),
- }));
- }
- @Html.Partial("Modals/_Modal", modal)
- }
- @section scripts
- {
- @*<script src="~/Content/Plugins/PrintPreView/print-preview.js"></script>*@
- <script type="text/javascript">
- $(function () {
- LoadTable();
- var funs = window.iwbfuns || { none: function () { console.log("No type"); } };
- funs["btnUpdate"] = function () { BtnUpdate({ disabled: "name" }); };
- });
- </script>
- <script id="formatter" type="text/javascript">
- </script>
- }
|