|
|
@ -8,14 +8,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<table class="datatables-ajax table table-bordered dataTable no-footer" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr><th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="text-align:center;"><input id="userToggler" onchange="${infoPrefix}Control.users.select(this.checked);" type="checkbox" class="form-check-input"></th>
|
|
|
|
<tr><th tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="text-align:center;"><input id="authUserToggler" onchange="${infoPrefix}Control.users.select(this.checked);" type="checkbox" class="form-check-input"></th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending" style="">사용자</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Email: activate to sort column ascending" style="">사용자</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Start date: activate to sort column ascending" style="">등록일자</th>
|
|
|
|
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Start date: activate to sort column ascending" style="">등록일자</th>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody id="userList">
|
|
|
|
<tbody id="authUsers">
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
|
|
|
<template id="userRow">
|
|
|
|
<template id="authUserRow">
|
|
|
|
<tr data-key="{AUTH_ID}-{USER_ID}">
|
|
|
|
<tr data-key="{AUTH_ID}-{USER_ID}">
|
|
|
|
<td style="text-align:center;"><input value="{AUTH_ID}-{USER_ID}" onchange="${infoPrefix}Control.users.select('{AUTH_ID}-{USER_ID}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<td style="text-align:center;"><input value="{AUTH_ID}-{USER_ID}" onchange="${infoPrefix}Control.users.select('{AUTH_ID}-{USER_ID}', this.checked);" type="checkbox" class="form-check-input"></td>
|
|
|
|
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{USER_ACNT}</td>
|
|
|
|
<td onclick="${infoPrefix}Control.users.setCurrent('{AUTH_ID}-{USER_ID}')">{USER_ACNT}</td>
|
|
|
@ -57,9 +57,9 @@ ${infoPrefix}Control.onUserListChange = obj => {
|
|
|
|
let trs =
|
|
|
|
let trs =
|
|
|
|
${infoPrefix}Control.authorities.isImplicit() ? [document.getElementById("implicitActions").innerHTML.replace(/{authority}/, authority)] :
|
|
|
|
${infoPrefix}Control.authorities.isImplicit() ? [document.getElementById("implicitActions").innerHTML.replace(/{authority}/, authority)] :
|
|
|
|
empty ? [document.getElementById("userNotFound").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
empty ? [document.getElementById("userNotFound").innerHTML] : <%-- from template#${infoPrefix}NotFound --%>
|
|
|
|
${infoPrefix}List.inStrings(document.getElementById("userRow").innerHTML); <%-- from template#${infoPrefix}Row --%>
|
|
|
|
${infoPrefix}List.inStrings(document.getElementById("authUserRow").innerHTML); <%-- from template#${infoPrefix}Row --%>
|
|
|
|
$("#userList").html(trs.join());
|
|
|
|
$("#authUsers").html(trs.join());
|
|
|
|
$("#userToggler").prop("checked", false);
|
|
|
|
$("#authUserToggler").prop("checked", false);
|
|
|
|
|
|
|
|
|
|
|
|
$("#userPaging").setPaging({
|
|
|
|
$("#userPaging").setPaging({
|
|
|
|
list:${infoPrefix}Control.users.dataset,
|
|
|
|
list:${infoPrefix}Control.users.dataset,
|
|
|
@ -76,13 +76,13 @@ ${infoPrefix}Control.onCurrentUserChange = item => {
|
|
|
|
|
|
|
|
|
|
|
|
let data = item.data;
|
|
|
|
let data = item.data;
|
|
|
|
let key = data.AUTH_ID + "-" + data.USER_ID;
|
|
|
|
let key = data.AUTH_ID + "-" + data.USER_ID;
|
|
|
|
$("#userList").setCurrentRow(key);
|
|
|
|
$("#authUsers").setCurrentRow(key);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
${infoPrefix}Control.onUserSelect = selected => {
|
|
|
|
${infoPrefix}Control.onUserSelect = selected => {
|
|
|
|
let ${infoPrefix}List = ${infoPrefix}Control.users.dataset;
|
|
|
|
let ${infoPrefix}List = ${infoPrefix}Control.users.dataset;
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
let keys = selected.map(e => ${infoPrefix}List.getKey(e));
|
|
|
|
$("#userList input[type='checkbox']").each(function() {
|
|
|
|
$("#authUsers input[type='checkbox']").each(function() {
|
|
|
|
let checkbox = $(this);
|
|
|
|
let checkbox = $(this);
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
checkbox.prop("checked", keys.includes(checkbox.val()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|