mirror of https://github.com/jumpserver/jumpserver
[Delete] 删除 system user一些属性
parent
610c9c5149
commit
2ae57a7970
|
@ -284,7 +284,7 @@ class SystemUserForm(forms.ModelForm):
|
||||||
fields = [
|
fields = [
|
||||||
'name', 'username', 'protocol', 'auto_generate_key', 'password',
|
'name', 'username', 'protocol', 'auto_generate_key', 'password',
|
||||||
'private_key_file', 'auth_method', 'auto_push', 'sudo',
|
'private_key_file', 'auth_method', 'auto_push', 'sudo',
|
||||||
'comment', 'shell', 'home', 'uid',
|
'comment', 'shell'
|
||||||
]
|
]
|
||||||
widgets = {
|
widgets = {
|
||||||
'name': forms.TextInput(attrs={'placeholder': _('Name')}),
|
'name': forms.TextInput(attrs={'placeholder': _('Name')}),
|
||||||
|
|
|
@ -69,9 +69,7 @@
|
||||||
</div>
|
</div>
|
||||||
<h3>{% trans 'Other' %}</h3>
|
<h3>{% trans 'Other' %}</h3>
|
||||||
{{ form.sudo|bootstrap_horizontal }}
|
{{ form.sudo|bootstrap_horizontal }}
|
||||||
{{ form.home|bootstrap_horizontal }}
|
|
||||||
{{ form.shell|bootstrap_horizontal }}
|
{{ form.shell|bootstrap_horizontal }}
|
||||||
{{ form.uid|bootstrap_horizontal }}
|
|
||||||
{{ form.comment|bootstrap_horizontal }}
|
{{ form.comment|bootstrap_horizontal }}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-4 col-sm-offset-2">
|
<div class="col-sm-4 col-sm-offset-2">
|
||||||
|
|
Loading…
Reference in New Issue