Skip to content

Commit

Permalink
Custom Tenant list view
Browse files Browse the repository at this point in the history
  • Loading branch information
knstvk committed May 3, 2024
1 parent 276bd9e commit 41798b4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
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 {
}
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>

0 comments on commit 41798b4

Please sign in to comment.