EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
284 stars 94 forks source link

MVC UI Index.cshtml page generation improvement. #38

Closed gdlcf88 closed 4 years ago

gdlcf88 commented 4 years ago

https://github.com/EasyAbp/AbpHelper.CLI/blob/develop/src/AbpHelper/Templates/Crud/Groups/UiRazor/src/%7B%7B%20ProjectInfo.FullName%20%7D%7D.Web/Pages/%7B%7B%20EntityInfo.NamespaceLastPart%20%7D%7D/%7B%7B%20EntityInfo.Name%20%7D%7D/Index.cshtml.sbntxt

Refer to: https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/Index.cshtml

  1. Needs "PageLayout" generation: Title, BreadCrumb and MenuItemName configurations in PageLayout.Content.

  2. "\

    \

    " should be "\\".

  3. "size-md" should be _6 and _6.

  4. Creation button needs permission check. Relate to: https://github.com/EasyAbp/AbpHelper.CLI/issues/33 .

  5. "\" may need class="nowrap".

gdlcf88 commented 4 years ago
@inject IPageLayout PageLayout
@{
    PageLayout.Content.Title = L["Product"].Value;
    PageLayout.Content.BreadCrumb.Add(L["Menu:ProductManagement"].Value);
    PageLayout.Content.MenuItemName = "Product";
}
wakuflair commented 4 years ago

Close for now.