- Active: |
+ {% trans 'Active' %} : |
@@ -139,8 +139,8 @@
{% for system_user in system_users %}
-
+
{{ system_user.name }} |
diff --git a/apps/perms/templates/perms/asset_permission_user.html b/apps/perms/templates/perms/asset_permission_user.html
index f694bf4fd..2e64368aa 100644
--- a/apps/perms/templates/perms/asset_permission_user.html
+++ b/apps/perms/templates/perms/asset_permission_user.html
@@ -53,8 +53,6 @@
|
{% trans 'Name' %} |
{% trans 'Username' %} |
- {% trans 'Email' %} |
- {% trans 'Is valid' %} |
|
@@ -63,15 +61,6 @@
{{ user.name }} |
{{ user.username }} |
- {{ user.email }} |
-
- {% if user.is_expired and user.is_active %}
-
- {% else %}
-
- {% endif %}
- |
-
|
@@ -231,7 +220,6 @@ $(document).ready(function () {
$.map(jumpserver.users_selected, function(value, index) {
users_id.push(index);
});
- console.log(users_id);
addUsers(users_id);
}).on('click', '.btn-remove-user', function () {
var user_id = $(this).data("gid");
diff --git a/apps/static/js/jumpserver.js b/apps/static/js/jumpserver.js
index d8db987ad..a76c44187 100644
--- a/apps/static/js/jumpserver.js
+++ b/apps/static/js/jumpserver.js
@@ -61,7 +61,6 @@ function GetTableDataBox() {
id_list.push(i);
}
}
- console.log(id_list);
for (i in id_list) {
console.log(tabProduct);
tableData.push(GetRowData(tabProduct.rows[id_list[i]]));
@@ -358,7 +357,6 @@ function setCookie(key, value) {
var expires = new Date();
expires.setTime(expires.getTime() + (24 * 60 * 60 * 1000));
document.cookie = key + '=' + value + ';expires=' + expires.toUTCString() + ';path=/';
- console.log("Cookie: " + document.cookie)
}
diff --git a/apps/templates/_user_profile.html b/apps/templates/_user_profile.html
index 4fa3ef24f..1fd07b5c6 100644
--- a/apps/templates/_user_profile.html
+++ b/apps/templates/_user_profile.html
@@ -28,7 +28,6 @@ $(document).ready(function () {
.on('click', '#switch_user', function () {
var cookieName = "IN_ADMIN_PAGE";
setTimeout(function () {
- console.log("Set to No");
delCookie(cookieName);
setCookie(cookieName, "No");
window.location = "/"
diff --git a/apps/terminal/templates/terminal/terminal_list.html b/apps/terminal/templates/terminal/terminal_list.html
index 314ed6c9a..f040f92ee 100644
--- a/apps/terminal/templates/terminal/terminal_list.html
+++ b/apps/terminal/templates/terminal/terminal_list.html
@@ -136,7 +136,6 @@ $(document).ready(function(){
}).on('click', '.btn-connect', function () {
var $this = $(this);
var id = $this.data('id');
- console.log(id)
})
{% endblock %}
diff --git a/apps/users/forms.py b/apps/users/forms.py
index 48021ec74..c4f008663 100644
--- a/apps/users/forms.py
+++ b/apps/users/forms.py
@@ -184,12 +184,14 @@ class UserBulkUpdateForm(forms.ModelForm):
class UserGroupForm(forms.ModelForm):
users = forms.ModelMultipleChoiceField(
queryset=User.objects.all(),
+ label=_("User"),
widget=forms.SelectMultiple(
attrs={
'class': 'select2',
'data-placeholder': _('Select users')
}
- )
+ ),
+ required=False,
)
def __init__(self, **kwargs):
diff --git a/apps/users/templates/users/user_group_detail.html b/apps/users/templates/users/user_group_detail.html
index da461ec6b..5d5fe5022 100644
--- a/apps/users/templates/users/user_group_detail.html
+++ b/apps/users/templates/users/user_group_detail.html
@@ -171,7 +171,6 @@ $(document).ready(function () {
var users = $('.bdg_user').map(function() {
return $(this).data('uid');
}).get();
- console.log(users);
updateGroupMember(users)
}).on('click', '#btn_add_user', function() {
if (Object.keys(jumpserver.users_selected).length === 0) {
diff --git a/apps/users/templates/users/user_list.html b/apps/users/templates/users/user_list.html
index 978532639..ab9bcf3c7 100644
--- a/apps/users/templates/users/user_list.html
+++ b/apps/users/templates/users/user_list.html
@@ -223,7 +223,7 @@ $(document).ready(function(){
var $this = $(this);
var name = $this.data('name');
var uid = $this.data('uid');
- var the_url = '{% url "api-users:user-detail" pk="{{ DEFAULT_PK }}" %}'.replace("{{ DEFAULT_PK }}", uid);
+ var the_url = '{% url "api-users:user-detail" pk=DEFAULT_PK %}'.replace("{{ DEFAULT_PK }}", uid);
objectDelete($this, name, the_url);
})
diff --git a/apps/users/views/group.py b/apps/users/views/group.py
index f1658a116..a26cfcaec 100644
--- a/apps/users/views/group.py
+++ b/apps/users/views/group.py
@@ -39,7 +39,9 @@ class UserGroupCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateVie
form_class = forms.UserGroupForm
template_name = 'users/user_group_create_update.html'
success_url = reverse_lazy('users:user-group-list')
- success_message = ' {name} was created successfully'
+ success_message = _(
+ 'User group {name} was created successfully'
+ )
def get_context_data(self, **kwargs):
context = {
|