Add in userpanewl and fix up table sub in template

This commit is contained in:
2025-04-23 13:44:45 +01:00
parent a5272319f2
commit 93ef6c22c4
11 changed files with 792 additions and 2 deletions

36
json5/Userpanels.json5 Normal file
View File

@@ -0,0 +1,36 @@
{
PackageName: 'Userpanels',
prefix: 'usp',
MenuHeading: 'System',
MenuDescription: 'User panel access ',
MenuNavigation: '2000 400',
firstPanel: 'USERTABLE',
signalEvent: 'smeserver-userpanels-update',
html: [ {
Name: 'usertable',
route: 'USERTABLE',
Header: 'Allocate panels to a user',
SubHeader: 'Choose a user',
Paragraph1: 'You can modify individual users access to the server-manager panels below by clicking on the link next the account. You can assign panels to the members of a group with their link. Users or Groups in red have some form of extra access. You can globally assign a panel by editing the global account',
Table1: {
Type:'Table',
TableControl:"users",
TopHeadings: ['Account','Name/Description','Modify'],
Columns: ['Account','Description','Modify']
}
},
{
Name: 'paneltable',
route:'PANELTABLE',
Header: 'Allocate panels to a user',
SubHeader: 'Select panels for user',
Table2: {
Type:'Table',
TableControl:"panels",
TopHeadings: ['Panel','Description','Select'],
Columns: ['Panel','Description','Select']
},
Submit: 'Save',
}
]
}