diff --git a/apps/assets/templates/assets/cluster_create_update.html b/apps/assets/templates/assets/cluster_create_update.html index 38fc6e3de..66c36bece 100644 --- a/apps/assets/templates/assets/cluster_create_update.html +++ b/apps/assets/templates/assets/cluster_create_update.html @@ -38,7 +38,7 @@ {% bootstrap_field form.contact layout="horizontal" %} {% bootstrap_field form.phone layout="horizontal" %} -

{% trans 'Settings' %}

+

{% trans 'Setting' %}

{% bootstrap_field form.admin_user layout="horizontal" %} {% bootstrap_field form.system_users layout="horizontal" %} diff --git a/apps/assets/views/cluster.py b/apps/assets/views/cluster.py index e1a2f6fba..835229fc1 100644 --- a/apps/assets/views/cluster.py +++ b/apps/assets/views/cluster.py @@ -46,7 +46,7 @@ class ClusterCreateView(AdminUserRequiredMixin, SuccessMessageMixin, CreateView) return super().get_context_data(**kwargs) def form_valid(self, form): - cluster = form.save(commit=False) + cluster = form.save() cluster.created_by = self.request.user.username cluster.save() return super().form_valid(form) diff --git a/apps/common/templates/common/basic_setting.html b/apps/common/templates/common/basic_setting.html index e24f1d6a8..fb5039795 100644 --- a/apps/common/templates/common/basic_setting.html +++ b/apps/common/templates/common/basic_setting.html @@ -52,7 +52,6 @@
-
diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index 9b898fe2f..5b01e493b 100644 Binary files a/apps/locale/zh/LC_MESSAGES/django.mo and b/apps/locale/zh/LC_MESSAGES/django.mo differ diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index 9b596a275..2c7f39971 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Jumpserver 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-12 15:51+0800\n" +"POT-Creation-Date: 2018-01-12 18:51+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: ibuler \n" "Language-Team: Jumpserver team\n" @@ -1107,10 +1107,10 @@ msgstr "选择资产" msgid "Task has been send, seen left assets status" msgstr "任务已下发,查看左侧资产状态" -#: assets/templates/assets/cluster_create_update.html:41 common/views.py:17 -#: common/views.py:44 common/views.py:69 templates/_nav.html:74 +#: assets/templates/assets/cluster_create_update.html:41 +#: users/templates/users/reset_password.html:57 #: users/templates/users/user_profile.html:20 -msgid "Settings" +msgid "Setting" msgstr "设置" #: assets/templates/assets/cluster_list.html:11 assets/views/cluster.py:43 @@ -1409,6 +1409,11 @@ msgstr "LDAP设置" msgid "Test connection" msgstr "测试连接" +#: common/views.py:17 common/views.py:44 common/views.py:69 +#: templates/_nav.html:69 +msgid "Settings" +msgstr "系统设置" + #: common/views.py:30 common/views.py:55 common/views.py:80 msgid "Update setting successfully" msgstr "更新设置成功" @@ -1955,14 +1960,14 @@ msgstr "离线会话" msgid "Command" msgstr "命令" -#: templates/_nav.html:56 templates/_nav_user.html:14 -msgid "Web terminal" -msgstr "Web终端" - #: templates/_nav_user.html:4 msgid "My assets" msgstr "我的资产" +#: templates/_nav_user.html:14 +msgid "Web terminal" +msgstr "Web终端" + #: templates/captcha/image.html:3 msgid "Play CAPTCHA as audio file" msgstr "语言播放验证码" @@ -2423,10 +2428,6 @@ msgstr "重置密码" msgid "Password again" msgstr "再次输入密码" -#: users/templates/users/reset_password.html:57 -msgid "Setting" -msgstr "设置" - #: users/templates/users/user_create.html:4 #: users/templates/users/user_list.html:16 users/views/user.py:72 msgid "Create user" diff --git a/apps/templates/_nav.html b/apps/templates/_nav.html index eec72cf04..39b14add8 100644 --- a/apps/templates/_nav.html +++ b/apps/templates/_nav.html @@ -65,7 +65,7 @@ {# #} {##}
  • - + {% trans 'Settings' %}
  • \ No newline at end of file diff --git a/apps/users/templates/users/user_profile.html b/apps/users/templates/users/user_profile.html index 99f5ca6e1..8b26c943d 100644 --- a/apps/users/templates/users/user_profile.html +++ b/apps/users/templates/users/user_profile.html @@ -17,7 +17,7 @@ {% trans 'Profile' %}
  • - {% trans 'Settings' %} + {% trans 'Setting' %}