-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate ListPart search into own shape #16749
Separate ListPart search into own shape #16749
Conversation
-easier placement and visibility of search panel. -follow same pattern as other shapes in list part admin. -cleanup unused services in razor view.
src/OrchardCore.Modules/OrchardCore.Lists/Drivers/ListPartDisplayDriver.cs
Outdated
Show resolved
Hide resolved
…layDriver.cs Co-authored-by: Mike Alhayek <[email protected]>
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartDetailAdminSearchPanel.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartDetailAdmin.cshtml
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartDetailAdminSearchPanel.cshtml
Outdated
Show resolved
Hide resolved
…AdminSearchPanel.cshtml Co-authored-by: Mike Alhayek <[email protected]>
… listpartadmin-search-panel
src/OrchardCore.Modules/OrchardCore.Lists/Drivers/ListPartDisplayDriver.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartDetailAdminSearchPanel.cshtml
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartNavigationAdmin.cshtml
Outdated
Show resolved
Hide resolved
@giannik please react to the changes and request a review again @MikeAlhayek if you have anything else let me know, otherwise I will merge once the changes applied |
…tionAdmin.cshtml Co-authored-by: Hisham Bin Ateya <[email protected]>
…AdminSearchPanel.cshtml Co-authored-by: Hisham Bin Ateya <[email protected]>
…layDriver.cs Co-authored-by: Hisham Bin Ateya <[email protected]>
var authorizedContentTypeDefinitions = new List<ContentTypeDefinition>(); | ||
foreach (var contentTypeDefinition in Model.ContainedContentTypeDefinitions) | ||
{ | ||
if (await AuthorizationService.AuthorizeAsync(User, CommonPermissions.EditContent, await ContentManager.NewAsync(contentTypeDefinition.Name))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to add content each time?
src/OrchardCore.Modules/OrchardCore.Lists/Drivers/ListPartDisplayDriver.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartNavigationAdmin.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartNavigationAdmin.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartDetailAdminSearchPanel.cshtml
Outdated
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartNavigationAdmin.cshtml
Outdated
Show resolved
Hide resolved
…AdminSearchPanel.cshtml Co-authored-by: Mike Alhayek <[email protected]>
…layDriver.cs Co-authored-by: Mike Alhayek <[email protected]>
…tionAdmin.cshtml Co-authored-by: Mike Alhayek <[email protected]>
…tionAdmin.cshtml Co-authored-by: Mike Alhayek <[email protected]>
…tionAdmin.cshtml Co-authored-by: Mike Alhayek <[email protected]>
src/OrchardCore.Modules/OrchardCore.Lists/Views/ListPartDetailAdminSearchPanel.cshtml
Outdated
Show resolved
Hide resolved
…AdminSearchPanel.cshtml
var dropdownClassList = CultureInfo.CurrentUICulture.IsRightToLeft() | ||
? "dropdown-menu dropdown-menu-start" | ||
: "dropdown-menu"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just have one question before you nominate me @MikeAlhayek, this time there are 4 spaces before it's by intention or VS formatting?!!
-easier placement and visibility of search panel.
-follow same pattern as other shapes in list part admin.
-cleanup unused services in razor view.