mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
513 B
19 lines
513 B
# ~*~ coding: utf-8 ~*~
|
|
#
|
|
|
|
from django import forms
|
|
from django.utils.translation import ungettext_lazy as _
|
|
|
|
from .models import Terminal
|
|
|
|
|
|
class TerminalForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Terminal
|
|
fields = ['name', 'remote_addr', 'type', 'url', 'comment']
|
|
help_texts = {
|
|
'url': 'Example: ssh://192.168.1.1:22 or http://jms.jumpserver.org, that user login'
|
|
}
|
|
widgets = {
|
|
'name': forms.TextInput(attrs={'readonly': 'readonly'})
|
|
} |