mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 22:22:54 +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",
|
"caption": "Standard Permissions",
|
||||||
"can_add_new_rows": false,
|
"can_add_new_rows": false,
|
||||||
|
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"label": "User / Group",
|
||||||
|
"span": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Permissions",
|
||||||
|
"span": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
"name": "permissions_id",
|
"name": "permissions_id",
|
||||||
"label": "User / Group"
|
"label": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "id_can_connect",
|
"name": "id_can_connect",
|
||||||
|
@ -162,10 +173,21 @@
|
||||||
"caption": "Permissions for Specific Users",
|
"caption": "Permissions for Specific Users",
|
||||||
"can_add_new_rows": true,
|
"can_add_new_rows": true,
|
||||||
|
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"label": "User / Group",
|
||||||
|
"span": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Permissions",
|
||||||
|
"span": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
"name": "permissions_id",
|
"name": "permissions_id",
|
||||||
"label": "User / Group"
|
"label": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "id_can_connect",
|
"name": "id_can_connect",
|
||||||
|
|
|
@ -931,6 +931,22 @@ function makeTable(setting, keypath, setting_value, isLocked) {
|
||||||
html += "<caption>" + setting.caption + "</caption>"
|
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
|
// Column names
|
||||||
html += "<tr class='headers'>"
|
html += "<tr class='headers'>"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue