Skip to content

Commit a79dded

Browse files
committed
Improve the management page UI
1 parent f35b280 commit a79dded

File tree

11 files changed

+73
-61
lines changed

11 files changed

+73
-61
lines changed

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<PropertyGroup>
33
<AbpVersion>9.2.1</AbpVersion>
44
<NatashaVersion>9.0.0.*</NatashaVersion>
5-
<EasyAbpAbpDynamicPermissionModuleVersion>1.12.0</EasyAbpAbpDynamicPermissionModuleVersion>
6-
<EasyAbpAbpDynamicEntityModuleVersion>0.19.0</EasyAbpAbpDynamicEntityModuleVersion>
7-
<EasyAbpAbpDynamicMenuModuleVersion>1.8.0</EasyAbpAbpDynamicMenuModuleVersion>
5+
<EasyAbpAbpDynamicPermissionModuleVersion>1.13.0-preview.1</EasyAbpAbpDynamicPermissionModuleVersion>
6+
<EasyAbpAbpDynamicEntityModuleVersion>0.20.0-preview.1</EasyAbpAbpDynamicEntityModuleVersion>
7+
<EasyAbpAbpDynamicMenuModuleVersion>1.9.0-preview.1</EasyAbpAbpDynamicMenuModuleVersion>
88
</PropertyGroup>
99
</Project>

common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<LangVersion>latest</LangVersion>
4-
<Version>1.8.0</Version>
4+
<Version>1.9.0-preview.1</Version>
55
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
66
<AbpProjectType>module</AbpProjectType>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"culture": "en",
33
"texts": {
4-
"Menu:DynamicEntity": "Dynamic entities"
4+
"Menu:EasyAbp.Abp.DynamicEntity": "Dynamic entities"
55
}
66
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"culture": "zh-Hans",
33
"texts": {
4-
"Menu:DynamicEntity": "动态实体"
4+
"Menu:EasyAbp.Abp.DynamicEntity": "动态实体"
55
}
66
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"culture": "zh-Hant",
33
"texts": {
4-
"Menu:DynamicEntity": "動態實體"
4+
"Menu:EasyAbp.Abp.DynamicEntity": "動態實體"
55
}
66
}

src/EasyAbp.Abp.EntityUi.Domain.Shared/EasyAbp/Abp/EntityUi/Localization/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"culture": "en",
33
"texts": {
4-
"Menu:EntityUi": "Entity UI",
4+
"Menu:EasyAbp.Abp.EntityUi": "Entity UI",
55
"Menu:Module": "Module",
66
"Module": "Module",
77
"ModuleName": "Name",

src/EasyAbp.Abp.EntityUi.Domain.Shared/EasyAbp/Abp/EntityUi/Localization/zh-Hans.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"culture": "zh-Hans",
33
"texts": {
4-
"Menu:EntityUi": "实体 UI",
4+
"Menu:EasyAbp.Abp.EntityUi": "实体 UI",
55
"Menu:Module": "模块",
66
"Module": "模块",
77
"ModuleName": "名称",

src/EasyAbp.Abp.EntityUi.Domain.Shared/EasyAbp/Abp/EntityUi/Localization/zh-Hant.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"culture": "zh-Hant",
33
"texts": {
4-
"Menu:EntityUi": "實體 UI",
4+
"Menu:EasyAbp.Abp.EntityUi": "實體 UI",
55
"Menu:Module": "模塊",
66
"Module": "模塊",
77
"ModuleName": "名稱",

src/EasyAbp.Abp.EntityUi.Domain/EasyAbp/Abp/EntityUi/EntityUiSeed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@
709709
"parentName": null,
710710
"inAdministration": true,
711711
"name": "EasyAbp.Abp.EntityUi",
712-
"displayName": "Menu:EntityUi",
712+
"displayName": "Menu:EasyAbp.Abp.EntityUi",
713713
"url": null,
714714
"urlMvc": null,
715715
"urlBlazor": null,

src/EasyAbp.Abp.EntityUi.Web/Pages/EntityUi/Index.cshtml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
@using EasyAbp.Abp.EntityUi.Web.Pages.EntityUi
33
@using Volo.Abp.AspNetCore.Mvc.UI.Layout
44
@model EasyAbp.Abp.EntityUi.Web.Pages.EntityUi.IndexModel
5-
@inject IPageLayout _pageLayout
5+
@inject IPageLayout PageLayout
66
@{
7-
_pageLayout.Content.Title = await Model.GetPageTitleAsync();
8-
_pageLayout.Content.BreadCrumb.Add(await Model.GetBreadCrumbTextAsync());
9-
_pageLayout.Content.MenuItemName = await Model.GetMenuItemNameAsync();
7+
PageLayout.Content.Title = await Model.GetPageTitleAsync();
8+
9+
var breadcrumbs = await Model.GetBreadCrumbsAsync();
10+
foreach (var breadcrumb in breadcrumbs)
11+
{
12+
PageLayout.Content.BreadCrumb.Add(breadcrumb);
13+
}
14+
15+
PageLayout.Content.MenuItemName = await Model.GetMenuItemNameAsync();
1016
}
1117

1218
<script type="text/javascript">
@@ -41,31 +47,26 @@
4147
{
4248
@if (Model.IsSubEntity)
4349
{
44-
<abp-script src="/Pages/EntityUi/index-sub-entity.js" />
50+
<abp-script src="/Pages/EntityUi/index-sub-entity.js"/>
4551
}
4652
else
4753
{
48-
<abp-script src="/Pages/EntityUi/index.js" />
54+
<abp-script src="/Pages/EntityUi/index.js"/>
55+
}
56+
}
57+
@section content_toolbar
58+
{
59+
@if (Model.Entity.CreationEnabled && await Model.IsCreationPermissionGrantedOrNullAsync())
60+
{
61+
<abp-button id="@await Model.GetNewButtonIdAsync()"
62+
text="@await Model.GetNewButtonTextAsync()"
63+
icon="plus"
64+
icon="Small"
65+
button-type="Primary"/>
4966
}
5067
}
5168

5269
<abp-card>
53-
<abp-card-header>
54-
<abp-row>
55-
<abp-column size-md="_6">
56-
<abp-card-title>@await Model.GetPageTitleAsync()</abp-card-title>
57-
</abp-column>
58-
<abp-column size-md="_6" class="text-end">
59-
@if (Model.Entity.CreationEnabled && await Model.IsCreationPermissionGrantedOrNullAsync())
60-
{
61-
<abp-button id="@await Model.GetNewButtonIdAsync()"
62-
text="@await Model.GetNewButtonTextAsync()"
63-
icon="plus"
64-
button-type="Primary" />
65-
}
66-
</abp-column>
67-
</abp-row>
68-
</abp-card-header>
6970
<abp-card-body>
7071
<abp-table striped-rows="true" id="@await Model.GetTableIdAsync()" class="nowrap"/>
7172
</abp-card-body>

0 commit comments

Comments
 (0)