RoleCheckListHeaderTemplate befejezése új/módosítás

This commit is contained in:
2025-03-28 12:55:10 +01:00
parent f119b196ea
commit ddc898cc2e
11 changed files with 419 additions and 8 deletions
@@ -17,6 +17,7 @@
<th>ID</th>
<th>Role name</th>
<th>Template name</th>
<th>Enabled</th>
<th class="text-center">Action</th>
</tr>
</thead>
@@ -25,6 +26,7 @@
<th>ID</th>
<th>Role name</th>
<th>Template name</th>
<th>Enabled</th>
<th class="text-center">Action</th>
</tr>
</tfoot>
@@ -43,6 +45,22 @@
{ data: "id" },
{ data: "roleDTO.roleName" },
{ data: "checkListTemplateHeaderDTO.description" },
{
data: "enabled",
searchable: false,
sortable: false,
className: "text-center",
render: function ( data, type, row ) {
if (data === true) {
return '<input type="checkbox" class="editor-active" disabled checked>';
}
if (data === false) {
return '<input type="checkbox" class="editor-active" disabled>';
}
return data;
}
},
{ data: null, render: function (data, type, row) {
return renderActionButtons(row.id);
}}
@@ -53,7 +71,7 @@
"visible": false
},
{
"targets": 3,
"targets": 4,
"className": "text-center",
"width": "10%"
}