mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Add security table heading groups
This commit is contained in:
parent
0119af11d6
commit
f2d81f1338
2 changed files with 40 additions and 2 deletions
|
@ -104,10 +104,21 @@
|
|||
"caption": "Standard Permissions",
|
||||
"can_add_new_rows": false,
|
||||
|
||||
"groups": [
|
||||
{
|
||||
"label": "User / Group",
|
||||
"span": 1
|
||||
},
|
||||
{
|
||||
"label": "Permissions",
|
||||
"span": 6
|
||||
}
|
||||
],
|
||||
|
||||
"columns": [
|
||||
{
|
||||
"name": "permissions_id",
|
||||
"label": "User / Group"
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"name": "id_can_connect",
|
||||
|
@ -162,10 +173,21 @@
|
|||
"caption": "Permissions for Specific Users",
|
||||
"can_add_new_rows": true,
|
||||
|
||||
"groups": [
|
||||
{
|
||||
"label": "User / Group",
|
||||
"span": 1
|
||||
},
|
||||
{
|
||||
"label": "Permissions",
|
||||
"span": 6
|
||||
}
|
||||
],
|
||||
|
||||
"columns": [
|
||||
{
|
||||
"name": "permissions_id",
|
||||
"label": "User / Group"
|
||||
"label": ""
|
||||
},
|
||||
{
|
||||
"name": "id_can_connect",
|
||||
|
|
|
@ -931,6 +931,22 @@ function makeTable(setting, keypath, setting_value, isLocked) {
|
|||
html += "<caption>" + setting.caption + "</caption>"
|
||||
}
|
||||
|
||||
// Column groups
|
||||
if (setting.groups) {
|
||||
html += "<tr class='headers'>"
|
||||
_.each(setting.groups, function (group) {
|
||||
html += "<td colspan='" + group.span + "'><strong>" + group.label + "</strong></td>"
|
||||
})
|
||||
if (!isLocked && !setting.read_only) {
|
||||
if (setting.can_order) {
|
||||
html += "<td class='" + Settings.REORDER_BUTTONS_CLASSES +
|
||||
"'><a href='javascript:void(0);' class='glyphicon glyphicon-sort'></a></td>";
|
||||
}
|
||||
html += "<td class='" + Settings.ADD_DEL_BUTTONS_CLASSES + "'></td></tr>"
|
||||
}
|
||||
html += "</tr>"
|
||||
}
|
||||
|
||||
// Column names
|
||||
html += "<tr class='headers'>"
|
||||
|
||||
|
|
Loading…
Reference in a new issue