-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/main/java/io/jmix/bookstore/view/tenant/BookstoreTenantListView.java
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package io.jmix.bookstore.view.tenant; | ||
|
||
import io.jmix.bookstore.view.main.MainView; | ||
import com.vaadin.flow.router.Route; | ||
import io.jmix.flowui.view.ViewController; | ||
import io.jmix.flowui.view.ViewDescriptor; | ||
import io.jmix.multitenancyflowui.view.tenant.TenantListView; | ||
|
||
@Route(value = "mten/tenants", layout = MainView.class) | ||
@ViewController("mten_Tenant.list") | ||
@ViewDescriptor("bookstore-tenant-list-view.xml") | ||
public class BookstoreTenantListView extends TenantListView { | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/resources/io/jmix/bookstore/view/tenant/bookstore-tenant-list-view.xml
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<view xmlns="http://jmix.io/schema/flowui/view" | ||
title="msg://io.jmix.multitenancyflowui.view.tenant/listTitle" | ||
messagesGroup="io.jmix.multitenancyflowui.view.tenant" | ||
extends="io/jmix/multitenancyflowui/view/tenant/tenant-list-view.xml"> | ||
<data readOnly="true"> | ||
<collection id="tenantsDc" | ||
class="io.jmix.multitenancy.entity.Tenant"> | ||
<fetchPlan extends="_base"/> | ||
</collection> | ||
</data> | ||
<layout> | ||
<dataGrid id="tenantsTable"> | ||
<columns> | ||
<column property="lastLogin"/> | ||
<column property="testdataInitialised"/> | ||
</columns> | ||
<actions> | ||
<action id="create" enabled="false"/> | ||
<action id="edit" enabled="false"/> | ||
<action id="remove" enabled="false"/> | ||
</actions> | ||
</dataGrid> | ||
</layout> | ||
</view> |