mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
All references are changed to BaseViewModel AdminViewModel class still present, but only temporarily as a stepping stone to smooth transition BaseViewModel.Menu now represents either the "admin" or "main" navigation depending on location MenuFilter now uses the AdminFilter.IsApplied flag to determine which primary nav to use IsApplied property moved to AdminFilter which is a better location for a universal flag than the theme selector --HG-- branch : dev
34 lines
827 B
C#
34 lines
827 B
C#
using System.Collections.Generic;
|
|
using Orchard.Mvc.ViewModels;
|
|
using Orchard.Pages.Models;
|
|
|
|
namespace Orchard.Pages.ViewModels {
|
|
public class PagesViewModel : BaseViewModel {
|
|
public IList<PageEntry> PageEntries { get; set; }
|
|
public PagesOptions Options { get; set; }
|
|
}
|
|
|
|
public class PageEntry {
|
|
public Page Page { get; set; }
|
|
public int PageId { get; set; }
|
|
public bool IsChecked { get; set; }
|
|
}
|
|
|
|
public class PagesOptions {
|
|
public PagesFilter Filter { get; set; }
|
|
public PagesBulkAction BulkAction { get; set; }
|
|
}
|
|
|
|
public enum PagesFilter {
|
|
All,
|
|
Published,
|
|
Offline
|
|
}
|
|
|
|
public enum PagesBulkAction {
|
|
None,
|
|
PublishNow,
|
|
Unpublish,
|
|
Delete
|
|
}
|
|
} |