change the location of "chpassword" button in /user/list
This commit is contained in:
parent
f9f3a5eec8
commit
6bf26e9d3d
|
@ -166,6 +166,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-white" data-dismiss="modal">Close</button>
|
<button type="button" class="btn btn-white" data-dismiss="modal">Close</button>
|
||||||
|
<a class="btn btn-danger" data-toggle="modal" data-target="#ChpasswordModal" onClick="" id="ChpasswordButton">Change Password</a>
|
||||||
<button type="button" class="btn btn-primary" onClick="javascript:sendModifyUser();">Submit</button>
|
<button type="button" class="btn btn-primary" onClick="javascript:sendModifyUser();">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -279,10 +280,6 @@
|
||||||
{
|
{
|
||||||
str=str + '<a class="btn btn-danger btn-xs" onClick="javascript:setActivateUser(' + row[0] + ');">' + 'Activate' + '</a>';
|
str=str + '<a class="btn btn-danger btn-xs" onClick="javascript:setActivateUser(' + row[0] + ');">' + 'Activate' + '</a>';
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
str=str + '<a class="btn btn-primary btn-xs" data-toggle="modal" data-target="#ChpasswordModal" onClick="javascript:setFormChpassword(\'' + row[1] + '\');">' + 'Chpassword' + '</a>';
|
|
||||||
}
|
|
||||||
return str;
|
return str;
|
||||||
},
|
},
|
||||||
"targets": 9
|
"targets": 9
|
||||||
|
@ -346,6 +343,7 @@
|
||||||
$("#mUserGroup").val(result.group);
|
$("#mUserGroup").val(result.group);
|
||||||
$("#mAuthMethod").val(result.auth_method);
|
$("#mAuthMethod").val(result.auth_method);
|
||||||
$("#mDescription").val(result.description);
|
$("#mDescription").val(result.description);
|
||||||
|
$("#ChpasswordButton").attr("onClick", "javascript:setFormChpassword(\"" + result.username + "\");");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function setFormChpassword(arg){
|
function setFormChpassword(arg){
|
||||||
|
|
Loading…
Reference in New Issue