@@ -16,6 +16,7 @@ class Meta:
1616 fields = [
1717 'hostname' , 'ip' , 'public_ip' , 'port' , 'comment' ,
1818 'nodes' , 'is_active' , 'admin_user' , 'labels' , 'platform' ,
19+ 'domain' ,
1920
2021 ]
2122 widgets = {
@@ -29,6 +30,9 @@ class Meta:
2930 'class' : 'select2' , 'data-placeholder' : _ ('Labels' )
3031 }),
3132 'port' : forms .TextInput (),
33+ 'domain' : forms .Select (attrs = {
34+ 'class' : 'select2' , 'data-placeholder' : _ ('Domain' )
35+ }),
3236 }
3337 help_texts = {
3438 'hostname' : '* required' ,
@@ -38,7 +42,8 @@ class Meta:
3842 'root or other NOPASSWD sudo privilege user existed in asset,'
3943 'If asset is windows or other set any one, more see admin user left menu'
4044 ),
41- 'platform' : _ ("* required Must set exact system platform, Windows, Linux ..." )
45+ 'platform' : _ ("* required Must set exact system platform, Windows, Linux ..." ),
46+ 'domain' : _ ("If your have some network not connect with each other, you can set domain" )
4247 }
4348
4449
@@ -48,6 +53,7 @@ class Meta:
4853 fields = [
4954 'hostname' , 'ip' , 'port' , 'nodes' , 'is_active' , 'platform' ,
5055 'public_ip' , 'number' , 'comment' , 'admin_user' , 'labels' ,
56+ 'domain' ,
5157 ]
5258 widgets = {
5359 'nodes' : forms .SelectMultiple (attrs = {
@@ -60,6 +66,9 @@ class Meta:
6066 'class' : 'select2' , 'data-placeholder' : _ ('Labels' )
6167 }),
6268 'port' : forms .TextInput (),
69+ 'domain' : forms .Select (attrs = {
70+ 'class' : 'select2' , 'data-placeholder' : _ ('Domain' )
71+ }),
6372 }
6473 help_texts = {
6574 'hostname' : '* required' ,
@@ -70,7 +79,8 @@ class Meta:
7079 'root or other NOPASSWD sudo privilege user existed in asset,'
7180 'If asset is windows or other set any one, more see admin user left menu'
7281 ),
73- 'platform' : _ ("* required Must set exact system platform, Windows, Linux ..." )
82+ 'platform' : _ ("* required Must set exact system platform, Windows, Linux ..." ),
83+ 'domain' : _ ("If your have some network not connect with each other, you can set domain" )
7484 }
7585
7686
0 commit comments