-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59e76d2
commit 84df060
Showing
5 changed files
with
240 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 24 additions & 1 deletion
25
src/OrchardCore.Modules/OrchardCore.Placements/ViewModels/ListShapePlacementsViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
using System.Collections.Generic; | ||
using Microsoft.AspNetCore.Mvc.ModelBinding; | ||
using Microsoft.AspNetCore.Mvc.Rendering; | ||
|
||
namespace OrchardCore.Placements.ViewModels | ||
{ | ||
public class ListShapePlacementsViewModel | ||
{ | ||
public IEnumerable<ShapePlacementViewModel> ShapePlacements { get; set; } | ||
public IList<ShapePlacementViewModel> ShapePlacements { get; set; } | ||
public dynamic Pager { get; set; } | ||
public ContentOptions Options { get; set; } = new ContentOptions(); | ||
} | ||
|
||
public class ContentOptions | ||
{ | ||
public string Search { get; set; } | ||
public ContentsBulkAction BulkAction { get; set; } | ||
|
||
#region Lists to populate | ||
|
||
[BindNever] | ||
public List<SelectListItem> ContentsBulkAction { get; set; } | ||
|
||
#endregion Lists to populate | ||
} | ||
|
||
public enum ContentsBulkAction | ||
{ | ||
None, | ||
Remove | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.