diff --git a/apps/assets/templates/assets/asset_detail.html b/apps/assets/templates/assets/asset_detail.html
index f52c50dc0..81c4f7a69 100644
--- a/apps/assets/templates/assets/asset_detail.html
+++ b/apps/assets/templates/assets/asset_detail.html
@@ -173,21 +173,13 @@
- {% trans 'Test system users' %}: |
+ {% trans 'Test system pingpong' %}: |
|
-
- {% trans 'Repush system users' %}: |
-
-
-
-
- |
-
@@ -230,41 +222,6 @@
-
-
- {% trans 'System users' %}
-
-
-
-
-
- {% for system_user in system_users %}
-
- {{ system_user.name }} |
-
-
- |
-
- {% endfor %}
-
-
-
-
@@ -343,9 +300,9 @@ $(document).ready(function () {
delete jumpserver.groups_selected[data.id]
})
})
- .on('click', '#is_active', function () {
- var the_url = '{% url "api-assets:asset-detail" pk=asset.id %}';
- var checked = $(this).prop('checked');
+ .on('click', '#is_active', function () {
+ var the_url = '{% url "api-assets:asset-detail" pk=asset.id %}';
+ var checked = $(this).prop('checked');
var body = {
'is_active': checked
};
@@ -357,23 +314,23 @@ $(document).ready(function () {
success_message: success
});
if (status == "False") {
- $(".ibox-content > table > tbody > tr:nth-child(13) > td:last >b").html('True');
+ $(".ibox-content > table > tbody > tr:nth-child(13) > td:last >b").html('True');
}else{
- $(".ibox-content > table > tbody > tr:nth-child(13) > td:last >b").html('False');
+ $(".ibox-content > table > tbody > tr:nth-child(13) > td:last >b").html('False');
}
})
- .on('click', '#btn_add_user_group', function () {
- if (Object.keys(jumpserver.groups_selected).length === 0) {
+ .on('click', '#btn_add_user_group', function () {
+ if (Object.keys(jumpserver.groups_selected).length === 0) {
return false;
}
- var groups = $('.bdg_group').map(function() {
- return $(this).data('gid');
- }).get();
- $.map(jumpserver.groups_selected, function(value, index) {
- groups.push(parseInt(index));
- $('#opt_' + index).remove();
- });
- updateAssetGroups(groups)
+ var groups = $('.bdg_group').map(function() {
+ return $(this).data('gid');
+ }).get();
+ $.map(jumpserver.groups_selected, function(value, index) {
+ groups.push(parseInt(index));
+ $('#opt_' + index).remove();
+ });
+ updateAssetGroups(groups)
})
.on('click', '.btn_leave_group', function() {
var $this = $(this);
@@ -391,33 +348,33 @@ $(document).ready(function () {
updateAssetGroups(groups)
})
.on('click', '.btn-system-user', function () {
- if (Object.keys(jumpserver.groups_selected).length === 0) {
+ if (Object.keys(jumpserver.groups_selected).length === 0) {
return false;
}
- var system_users = $('.bdg_group').map(function() {
- return $(this).data('sid');
- }).get();
- $.map(jumpserver.groups_selected, function(value, index) {
- system_users.push(parseInt(index));
- $('#opt_' + index).remove();
- });
- updateAssetSystem(system_users)
+ var system_users = $('.bdg_group').map(function() {
+ return $(this).data('sid');
+ }).get();
+ $.map(jumpserver.groups_selected, function(value, index) {
+ system_users.push(parseInt(index));
+ $('#opt_' + index).remove();
+ });
+ updateAssetSystem(system_users)
})
- .on('click', '.btn_leave_system', function () {
- var $this = $(this);
- var $tr = $this.closest('tr');
- var $badge = $tr.find('.bdg_group');
- var sid = $badge.data('sid');
- var name = $badge.html() || $badge.text();
- $('#groups_selected').append(
- ''
- );
- $tr.remove();
- var system_users = $('.bdg_group').map(function () {
- return $(this).data('sid');
- }).get();
- updateAssetSystem(system_users)
+ .on('click', '.btn_leave_system', function () {
+ var $this = $(this);
+ var $tr = $this.closest('tr');
+ var $badge = $tr.find('.bdg_group');
+ var sid = $badge.data('sid');
+ var name = $badge.html() || $badge.text();
+ $('#groups_selected').append(
+ ''
+ );
+ $tr.remove();
+ var system_users = $('.bdg_group').map(function () {
+ return $(this).data('sid');
+ }).get();
+ updateAssetSystem(system_users)
})
diff --git a/apps/assets/templates/assets/system_user_list.html b/apps/assets/templates/assets/system_user_list.html
index 6a1a85884..e000779dd 100644
--- a/apps/assets/templates/assets/system_user_list.html
+++ b/apps/assets/templates/assets/system_user_list.html
@@ -26,62 +26,62 @@
{% endblock %}
{% block custom_foot_js %}